@dynamic-labs/sdk-api 0.0.791 → 0.0.793
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/package.json +1 -1
- package/src/apis/OrganizationsApi.cjs +41 -0
- package/src/apis/OrganizationsApi.d.ts +13 -1
- package/src/apis/OrganizationsApi.js +41 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/OrganizationAddressFields.cjs +43 -0
- package/src/models/OrganizationAddressFields.d.ts +57 -0
- package/src/models/OrganizationAddressFields.js +37 -0
- package/src/models/OrganizationResponseOrganization.cjs +3 -0
- package/src/models/OrganizationResponseOrganization.d.ts +7 -0
- package/src/models/OrganizationResponseOrganization.js +3 -0
- package/src/models/ReshareRequest.cjs +2 -0
- package/src/models/ReshareRequest.d.ts +6 -0
- package/src/models/ReshareRequest.js +2 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -78,6 +78,7 @@ require('../models/RoleEnum.cjs');
|
|
|
78
78
|
require('../models/NextViewEnum.cjs');
|
|
79
79
|
require('../models/OauthResultStatus.cjs');
|
|
80
80
|
var Organization = require('../models/Organization.cjs');
|
|
81
|
+
var OrganizationAddressFields = require('../models/OrganizationAddressFields.cjs');
|
|
81
82
|
var OrganizationFields = require('../models/OrganizationFields.cjs');
|
|
82
83
|
var OrganizationRequest = require('../models/OrganizationRequest.cjs');
|
|
83
84
|
var OrganizationResponse = require('../models/OrganizationResponse.cjs');
|
|
@@ -278,6 +279,46 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
278
279
|
return yield response.value();
|
|
279
280
|
});
|
|
280
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Update an organization address by ID
|
|
284
|
+
*/
|
|
285
|
+
updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
286
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
288
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationAddressById.');
|
|
289
|
+
}
|
|
290
|
+
if (requestParameters.organizationAddressFields === null || requestParameters.organizationAddressFields === undefined) {
|
|
291
|
+
throw new runtime.RequiredError('organizationAddressFields', 'Required parameter requestParameters.organizationAddressFields was null or undefined when calling updateOrganizationAddressById.');
|
|
292
|
+
}
|
|
293
|
+
const queryParameters = {};
|
|
294
|
+
const headerParameters = {};
|
|
295
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
296
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
297
|
+
const token = this.configuration.accessToken;
|
|
298
|
+
const tokenString = yield token("bearerAuth", []);
|
|
299
|
+
if (tokenString) {
|
|
300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
const response = yield this.request({
|
|
304
|
+
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
305
|
+
method: 'PUT',
|
|
306
|
+
headers: headerParameters,
|
|
307
|
+
query: queryParameters,
|
|
308
|
+
body: OrganizationAddressFields.OrganizationAddressFieldsToJSON(requestParameters.organizationAddressFields),
|
|
309
|
+
}, initOverrides);
|
|
310
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationResponse.OrganizationResponseFromJSON(jsonValue));
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Update an organization address by ID
|
|
315
|
+
*/
|
|
316
|
+
updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
317
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const response = yield this.updateOrganizationAddressByIdRaw(requestParameters, initOverrides);
|
|
319
|
+
return yield response.value();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
281
322
|
/**
|
|
282
323
|
* Update an organization by ID
|
|
283
324
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { BillingSubscription, BillingSubscriptionCoupon, Organization, OrganizationFields, OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
|
|
13
|
+
import { BillingSubscription, BillingSubscriptionCoupon, Organization, OrganizationAddressFields, OrganizationFields, OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
|
|
14
14
|
export interface ApplyCouponForSubscriptionRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
billingSubscriptionCoupon: BillingSubscriptionCoupon;
|
|
@@ -24,6 +24,10 @@ export interface GetBillingSubscriptionByOrganizationRequest {
|
|
|
24
24
|
export interface GetOrganizationByIdRequest {
|
|
25
25
|
organizationId: string;
|
|
26
26
|
}
|
|
27
|
+
export interface UpdateOrganizationAddressByIdRequest {
|
|
28
|
+
organizationId: string;
|
|
29
|
+
organizationAddressFields: OrganizationAddressFields;
|
|
30
|
+
}
|
|
27
31
|
export interface UpdateOrganizationByIdRequest {
|
|
28
32
|
organizationId: string;
|
|
29
33
|
organizationFields: OrganizationFields;
|
|
@@ -75,6 +79,14 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
75
79
|
* Fetches all the active organizations that the user has access to
|
|
76
80
|
*/
|
|
77
81
|
getOrganizationsForMember(initOverrides?: RequestInit): Promise<OrganizationsResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Update an organization address by ID
|
|
84
|
+
*/
|
|
85
|
+
updateOrganizationAddressByIdRaw(requestParameters: UpdateOrganizationAddressByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationResponse>>;
|
|
86
|
+
/**
|
|
87
|
+
* Update an organization address by ID
|
|
88
|
+
*/
|
|
89
|
+
updateOrganizationAddressById(requestParameters: UpdateOrganizationAddressByIdRequest, initOverrides?: RequestInit): Promise<OrganizationResponse>;
|
|
78
90
|
/**
|
|
79
91
|
* Update an organization by ID
|
|
80
92
|
*/
|
|
@@ -74,6 +74,7 @@ import '../models/RoleEnum.js';
|
|
|
74
74
|
import '../models/NextViewEnum.js';
|
|
75
75
|
import '../models/OauthResultStatus.js';
|
|
76
76
|
import { OrganizationFromJSON } from '../models/Organization.js';
|
|
77
|
+
import { OrganizationAddressFieldsToJSON } from '../models/OrganizationAddressFields.js';
|
|
77
78
|
import { OrganizationFieldsToJSON } from '../models/OrganizationFields.js';
|
|
78
79
|
import { OrganizationRequestToJSON } from '../models/OrganizationRequest.js';
|
|
79
80
|
import { OrganizationResponseFromJSON } from '../models/OrganizationResponse.js';
|
|
@@ -274,6 +275,46 @@ class OrganizationsApi extends BaseAPI {
|
|
|
274
275
|
return yield response.value();
|
|
275
276
|
});
|
|
276
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Update an organization address by ID
|
|
280
|
+
*/
|
|
281
|
+
updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
284
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationAddressById.');
|
|
285
|
+
}
|
|
286
|
+
if (requestParameters.organizationAddressFields === null || requestParameters.organizationAddressFields === undefined) {
|
|
287
|
+
throw new RequiredError('organizationAddressFields', 'Required parameter requestParameters.organizationAddressFields was null or undefined when calling updateOrganizationAddressById.');
|
|
288
|
+
}
|
|
289
|
+
const queryParameters = {};
|
|
290
|
+
const headerParameters = {};
|
|
291
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
293
|
+
const token = this.configuration.accessToken;
|
|
294
|
+
const tokenString = yield token("bearerAuth", []);
|
|
295
|
+
if (tokenString) {
|
|
296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
const response = yield this.request({
|
|
300
|
+
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
301
|
+
method: 'PUT',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
body: OrganizationAddressFieldsToJSON(requestParameters.organizationAddressFields),
|
|
305
|
+
}, initOverrides);
|
|
306
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Update an organization address by ID
|
|
311
|
+
*/
|
|
312
|
+
updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const response = yield this.updateOrganizationAddressByIdRaw(requestParameters, initOverrides);
|
|
315
|
+
return yield response.value();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
277
318
|
/**
|
|
278
319
|
* Update an organization by ID
|
|
279
320
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -347,6 +347,7 @@ var OpenRoomResponse = require('./models/OpenRoomResponse.cjs');
|
|
|
347
347
|
var OpenRoomResponseForReshare = require('./models/OpenRoomResponseForReshare.cjs');
|
|
348
348
|
var OpenRoomResponseWithServerKeygenIds = require('./models/OpenRoomResponseWithServerKeygenIds.cjs');
|
|
349
349
|
var Organization = require('./models/Organization.cjs');
|
|
350
|
+
var OrganizationAddressFields = require('./models/OrganizationAddressFields.cjs');
|
|
350
351
|
var OrganizationFields = require('./models/OrganizationFields.cjs');
|
|
351
352
|
var OrganizationMember = require('./models/OrganizationMember.cjs');
|
|
352
353
|
var OrganizationMembersResponse = require('./models/OrganizationMembersResponse.cjs');
|
|
@@ -1745,6 +1746,9 @@ exports.OpenRoomResponseWithServerKeygenIdsToJSON = OpenRoomResponseWithServerKe
|
|
|
1745
1746
|
exports.OrganizationFromJSON = Organization.OrganizationFromJSON;
|
|
1746
1747
|
exports.OrganizationFromJSONTyped = Organization.OrganizationFromJSONTyped;
|
|
1747
1748
|
exports.OrganizationToJSON = Organization.OrganizationToJSON;
|
|
1749
|
+
exports.OrganizationAddressFieldsFromJSON = OrganizationAddressFields.OrganizationAddressFieldsFromJSON;
|
|
1750
|
+
exports.OrganizationAddressFieldsFromJSONTyped = OrganizationAddressFields.OrganizationAddressFieldsFromJSONTyped;
|
|
1751
|
+
exports.OrganizationAddressFieldsToJSON = OrganizationAddressFields.OrganizationAddressFieldsToJSON;
|
|
1748
1752
|
exports.OrganizationFieldsFromJSON = OrganizationFields.OrganizationFieldsFromJSON;
|
|
1749
1753
|
exports.OrganizationFieldsFromJSONTyped = OrganizationFields.OrganizationFieldsFromJSONTyped;
|
|
1750
1754
|
exports.OrganizationFieldsToJSON = OrganizationFields.OrganizationFieldsToJSON;
|
package/src/index.js
CHANGED
|
@@ -343,6 +343,7 @@ export { OpenRoomResponseFromJSON, OpenRoomResponseFromJSONTyped, OpenRoomRespon
|
|
|
343
343
|
export { OpenRoomResponseForReshareFromJSON, OpenRoomResponseForReshareFromJSONTyped, OpenRoomResponseForReshareToJSON } from './models/OpenRoomResponseForReshare.js';
|
|
344
344
|
export { OpenRoomResponseWithServerKeygenIdsFromJSON, OpenRoomResponseWithServerKeygenIdsFromJSONTyped, OpenRoomResponseWithServerKeygenIdsToJSON } from './models/OpenRoomResponseWithServerKeygenIds.js';
|
|
345
345
|
export { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON } from './models/Organization.js';
|
|
346
|
+
export { OrganizationAddressFieldsFromJSON, OrganizationAddressFieldsFromJSONTyped, OrganizationAddressFieldsToJSON } from './models/OrganizationAddressFields.js';
|
|
346
347
|
export { OrganizationFieldsFromJSON, OrganizationFieldsFromJSONTyped, OrganizationFieldsToJSON } from './models/OrganizationFields.js';
|
|
347
348
|
export { OrganizationMemberFromJSON, OrganizationMemberFromJSONTyped, OrganizationMemberToJSON } from './models/OrganizationMember.js';
|
|
348
349
|
export { OrganizationMembersResponseFromJSON, OrganizationMembersResponseFromJSONTyped, OrganizationMembersResponseToJSON } from './models/OrganizationMembersResponse.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function OrganizationAddressFieldsFromJSON(json) {
|
|
9
|
+
return OrganizationAddressFieldsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function OrganizationAddressFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'addressLine1': !runtime.exists(json, 'addressLine1') ? undefined : json['addressLine1'],
|
|
17
|
+
'addressLine2': !runtime.exists(json, 'addressLine2') ? undefined : json['addressLine2'],
|
|
18
|
+
'city': !runtime.exists(json, 'city') ? undefined : json['city'],
|
|
19
|
+
'region': !runtime.exists(json, 'region') ? undefined : json['region'],
|
|
20
|
+
'postalCode': !runtime.exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
21
|
+
'country': !runtime.exists(json, 'country') ? undefined : json['country'],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function OrganizationAddressFieldsToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'addressLine1': value.addressLine1,
|
|
33
|
+
'addressLine2': value.addressLine2,
|
|
34
|
+
'city': value.city,
|
|
35
|
+
'region': value.region,
|
|
36
|
+
'postalCode': value.postalCode,
|
|
37
|
+
'country': value.country,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.OrganizationAddressFieldsFromJSON = OrganizationAddressFieldsFromJSON;
|
|
42
|
+
exports.OrganizationAddressFieldsFromJSONTyped = OrganizationAddressFieldsFromJSONTyped;
|
|
43
|
+
exports.OrganizationAddressFieldsToJSON = OrganizationAddressFieldsToJSON;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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 OrganizationAddressFields
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationAddressFields {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationAddressFields
|
|
22
|
+
*/
|
|
23
|
+
addressLine1?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrganizationAddressFields
|
|
28
|
+
*/
|
|
29
|
+
addressLine2?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrganizationAddressFields
|
|
34
|
+
*/
|
|
35
|
+
city?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OrganizationAddressFields
|
|
40
|
+
*/
|
|
41
|
+
region?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OrganizationAddressFields
|
|
46
|
+
*/
|
|
47
|
+
postalCode?: string;
|
|
48
|
+
/**
|
|
49
|
+
* ISO 3166-1 alpha-2 country code
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OrganizationAddressFields
|
|
52
|
+
*/
|
|
53
|
+
country?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function OrganizationAddressFieldsFromJSON(json: any): OrganizationAddressFields;
|
|
56
|
+
export declare function OrganizationAddressFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationAddressFields;
|
|
57
|
+
export declare function OrganizationAddressFieldsToJSON(value?: OrganizationAddressFields | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function OrganizationAddressFieldsFromJSON(json) {
|
|
5
|
+
return OrganizationAddressFieldsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function OrganizationAddressFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'addressLine1': !exists(json, 'addressLine1') ? undefined : json['addressLine1'],
|
|
13
|
+
'addressLine2': !exists(json, 'addressLine2') ? undefined : json['addressLine2'],
|
|
14
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
15
|
+
'region': !exists(json, 'region') ? undefined : json['region'],
|
|
16
|
+
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
17
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function OrganizationAddressFieldsToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'addressLine1': value.addressLine1,
|
|
29
|
+
'addressLine2': value.addressLine2,
|
|
30
|
+
'city': value.city,
|
|
31
|
+
'region': value.region,
|
|
32
|
+
'postalCode': value.postalCode,
|
|
33
|
+
'country': value.country,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { OrganizationAddressFieldsFromJSON, OrganizationAddressFieldsFromJSONTyped, OrganizationAddressFieldsToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var OrganizationAddressFields = require('./OrganizationAddressFields.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function OrganizationResponseOrganizationFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function OrganizationResponseOrganizationFromJSONTyped(json, ignoreDiscriminator
|
|
|
17
18
|
'name': json['name'],
|
|
18
19
|
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
19
20
|
'websiteUrl': !runtime.exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
|
|
21
|
+
'address': !runtime.exists(json, 'address') ? undefined : OrganizationAddressFields.OrganizationAddressFieldsFromJSON(json['address']),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function OrganizationResponseOrganizationToJSON(value) {
|
|
@@ -31,6 +33,7 @@ function OrganizationResponseOrganizationToJSON(value) {
|
|
|
31
33
|
'name': value.name,
|
|
32
34
|
'description': value.description,
|
|
33
35
|
'websiteUrl': value.websiteUrl,
|
|
36
|
+
'address': OrganizationAddressFields.OrganizationAddressFieldsToJSON(value.address),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { OrganizationAddressFields } from './OrganizationAddressFields';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface OrganizationResponseOrganization {
|
|
|
39
40
|
* @memberof OrganizationResponseOrganization
|
|
40
41
|
*/
|
|
41
42
|
websiteUrl?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {OrganizationAddressFields}
|
|
46
|
+
* @memberof OrganizationResponseOrganization
|
|
47
|
+
*/
|
|
48
|
+
address?: OrganizationAddressFields;
|
|
42
49
|
}
|
|
43
50
|
export declare function OrganizationResponseOrganizationFromJSON(json: any): OrganizationResponseOrganization;
|
|
44
51
|
export declare function OrganizationResponseOrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationResponseOrganization;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { OrganizationAddressFieldsFromJSON, OrganizationAddressFieldsToJSON } from './OrganizationAddressFields.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function OrganizationResponseOrganizationFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function OrganizationResponseOrganizationFromJSONTyped(json, ignoreDiscriminator
|
|
|
13
14
|
'name': json['name'],
|
|
14
15
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
15
16
|
'websiteUrl': !exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
|
|
17
|
+
'address': !exists(json, 'address') ? undefined : OrganizationAddressFieldsFromJSON(json['address']),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function OrganizationResponseOrganizationToJSON(value) {
|
|
@@ -27,6 +29,7 @@ function OrganizationResponseOrganizationToJSON(value) {
|
|
|
27
29
|
'name': value.name,
|
|
28
30
|
'description': value.description,
|
|
29
31
|
'websiteUrl': value.websiteUrl,
|
|
32
|
+
'address': OrganizationAddressFieldsToJSON(value.address),
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -18,6 +18,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
19
19
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
20
20
|
'delegateToProjectEnvironment': !runtime.exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
21
|
+
'revokeDelegation': !runtime.exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
function ReshareRequestToJSON(value) {
|
|
@@ -32,6 +33,7 @@ function ReshareRequestToJSON(value) {
|
|
|
32
33
|
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
33
34
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
34
35
|
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
36
|
+
'revokeDelegation': value.revokeDelegation,
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -40,6 +40,12 @@ export interface ReshareRequest {
|
|
|
40
40
|
* @memberof ReshareRequest
|
|
41
41
|
*/
|
|
42
42
|
delegateToProjectEnvironment?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ReshareRequest
|
|
47
|
+
*/
|
|
48
|
+
revokeDelegation?: boolean;
|
|
43
49
|
}
|
|
44
50
|
export declare function ReshareRequestFromJSON(json: any): ReshareRequest;
|
|
45
51
|
export declare function ReshareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReshareRequest;
|
|
@@ -14,6 +14,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
15
15
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
16
16
|
'delegateToProjectEnvironment': !exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
17
|
+
'revokeDelegation': !exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
function ReshareRequestToJSON(value) {
|
|
@@ -28,6 +29,7 @@ function ReshareRequestToJSON(value) {
|
|
|
28
29
|
'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
29
30
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
30
31
|
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
32
|
+
'revokeDelegation': value.revokeDelegation,
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -306,6 +306,7 @@ export * from './OpenRoomResponse';
|
|
|
306
306
|
export * from './OpenRoomResponseForReshare';
|
|
307
307
|
export * from './OpenRoomResponseWithServerKeygenIds';
|
|
308
308
|
export * from './Organization';
|
|
309
|
+
export * from './OrganizationAddressFields';
|
|
309
310
|
export * from './OrganizationFields';
|
|
310
311
|
export * from './OrganizationMember';
|
|
311
312
|
export * from './OrganizationMembersResponse';
|