@dynamic-labs/sdk-api 0.0.794 → 0.0.796
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
CHANGED
|
@@ -409,6 +409,13 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
409
409
|
const queryParameters = {};
|
|
410
410
|
const headerParameters = {};
|
|
411
411
|
headerParameters['Content-Type'] = 'application/json';
|
|
412
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
413
|
+
const token = this.configuration.accessToken;
|
|
414
|
+
const tokenString = yield token("bearerAuth", []);
|
|
415
|
+
if (tokenString) {
|
|
416
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
412
419
|
const response = yield this.request({
|
|
413
420
|
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
414
421
|
method: 'PUT',
|
|
@@ -405,6 +405,13 @@ class OrganizationsApi extends BaseAPI {
|
|
|
405
405
|
const queryParameters = {};
|
|
406
406
|
const headerParameters = {};
|
|
407
407
|
headerParameters['Content-Type'] = 'application/json';
|
|
408
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
409
|
+
const token = this.configuration.accessToken;
|
|
410
|
+
const tokenString = yield token("bearerAuth", []);
|
|
411
|
+
if (tokenString) {
|
|
412
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
408
415
|
const response = yield this.request({
|
|
409
416
|
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
410
417
|
method: 'PUT',
|
|
@@ -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
|
var RoleEnum = require('./RoleEnum.cjs');
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
@@ -18,6 +19,7 @@ function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'name': json['name'],
|
|
19
20
|
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
20
21
|
'websiteUrl': !runtime.exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
|
|
22
|
+
'address': !runtime.exists(json, 'address') ? undefined : OrganizationAddressFields.OrganizationAddressFieldsFromJSON(json['address']),
|
|
21
23
|
'role': !runtime.exists(json, 'role') ? undefined : RoleEnum.RoleEnumFromJSON(json['role']),
|
|
22
24
|
};
|
|
23
25
|
}
|
|
@@ -33,6 +35,7 @@ function OrganizationToJSON(value) {
|
|
|
33
35
|
'name': value.name,
|
|
34
36
|
'description': value.description,
|
|
35
37
|
'websiteUrl': value.websiteUrl,
|
|
38
|
+
'address': OrganizationAddressFields.OrganizationAddressFieldsToJSON(value.address),
|
|
36
39
|
'role': RoleEnum.RoleEnumToJSON(value.role),
|
|
37
40
|
};
|
|
38
41
|
}
|
|
@@ -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
|
import { RoleEnum } from './RoleEnum';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -40,6 +41,12 @@ export interface Organization {
|
|
|
40
41
|
* @memberof Organization
|
|
41
42
|
*/
|
|
42
43
|
websiteUrl?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {OrganizationAddressFields}
|
|
47
|
+
* @memberof Organization
|
|
48
|
+
*/
|
|
49
|
+
address?: OrganizationAddressFields;
|
|
43
50
|
/**
|
|
44
51
|
*
|
|
45
52
|
* @type {RoleEnum}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { OrganizationAddressFieldsFromJSON, OrganizationAddressFieldsToJSON } from './OrganizationAddressFields.js';
|
|
2
3
|
import { RoleEnumFromJSON, RoleEnumToJSON } from './RoleEnum.js';
|
|
3
4
|
|
|
4
5
|
/* tslint:disable */
|
|
@@ -14,6 +15,7 @@ function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
15
|
'name': json['name'],
|
|
15
16
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
16
17
|
'websiteUrl': !exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
|
|
18
|
+
'address': !exists(json, 'address') ? undefined : OrganizationAddressFieldsFromJSON(json['address']),
|
|
17
19
|
'role': !exists(json, 'role') ? undefined : RoleEnumFromJSON(json['role']),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
@@ -29,6 +31,7 @@ function OrganizationToJSON(value) {
|
|
|
29
31
|
'name': value.name,
|
|
30
32
|
'description': value.description,
|
|
31
33
|
'websiteUrl': value.websiteUrl,
|
|
34
|
+
'address': OrganizationAddressFieldsToJSON(value.address),
|
|
32
35
|
'role': RoleEnumToJSON(value.role),
|
|
33
36
|
};
|
|
34
37
|
}
|