@dynamic-labs/sdk-api 0.0.795 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.795",
3
+ "version": "0.0.796",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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',