Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/sdk-api

Package Overview
Dependencies
Maintainers
2
Versions
551
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/sdk-api - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

src/models/OrganizationFields.d.ts

2

package.json
{
"name": "@dynamic-labs/sdk-api",
"version": "0.0.25",
"version": "0.0.26",
"author": "Dynamic Labs",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -13,3 +13,3 @@ /**

import * as runtime from '../runtime';
import { Organization, OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
import { Organization, OrganizationFields, OrganizationRequest, OrganizationResponse, OrganizationsResponse } from '../models';
export interface CreateOrganizationRequest {

@@ -24,2 +24,6 @@ organizationRequest: OrganizationRequest;

}
export interface UpdateOrganizationByIdRequest {
organizationId: string;
organizationFields: OrganizationFields;
}
/**

@@ -61,2 +65,10 @@ *

getOrganizationsForMember(initOverrides?: RequestInit): Promise<OrganizationsResponse>;
/**
* Update an organization by ID
*/
updateOrganizationByIdRaw(requestParameters: UpdateOrganizationByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationResponse>>;
/**
* Update an organization by ID
*/
updateOrganizationById(requestParameters: UpdateOrganizationByIdRequest, initOverrides?: RequestInit): Promise<OrganizationResponse>;
}

@@ -193,4 +193,44 @@ "use strict";

}
/**
* Update an organization by ID
*/
updateOrganizationByIdRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationById.');
}
if (requestParameters.organizationFields === null || requestParameters.organizationFields === undefined) {
throw new runtime.RequiredError('organizationFields', 'Required parameter requestParameters.organizationFields was null or undefined when calling updateOrganizationById.');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = yield token("bearerAuth", []);
if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = yield this.request({
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
method: 'PUT',
headers: headerParameters,
query: queryParameters,
body: (0, models_1.OrganizationFieldsToJSON)(requestParameters.organizationFields),
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OrganizationResponseFromJSON)(jsonValue));
});
}
/**
* Update an organization by ID
*/
updateOrganizationById(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.updateOrganizationByIdRaw(requestParameters, initOverrides);
return yield response.value();
});
}
}
exports.OrganizationsApi = OrganizationsApi;
//# sourceMappingURL=OrganizationsApi.js.map

@@ -31,2 +31,3 @@ export * from './BadRequest';

export * from './Organization';
export * from './OrganizationFields';
export * from './OrganizationRequest';

@@ -33,0 +34,0 @@ export * from './OrganizationResponse';

@@ -49,2 +49,3 @@ "use strict";

__exportStar(require("./Organization"), exports);
__exportStar(require("./OrganizationFields"), exports);
__exportStar(require("./OrganizationRequest"), exports);

@@ -51,0 +52,0 @@ __exportStar(require("./OrganizationResponse"), exports);

@@ -23,3 +23,3 @@ /**

*/
id?: string;
id: string;
/**

@@ -30,3 +30,3 @@ *

*/
name?: string;
name: string;
}

@@ -33,0 +33,0 @@ export declare function OrganizationFromJSON(json: any): Organization;

@@ -17,3 +17,2 @@ "use strict";

exports.OrganizationToJSON = exports.OrganizationFromJSONTyped = exports.OrganizationFromJSON = void 0;
const runtime_1 = require("../runtime");
function OrganizationFromJSON(json) {

@@ -28,4 +27,4 @@ return OrganizationFromJSONTyped(json, false);

return {
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
'id': json['id'],
'name': json['name'],
};

@@ -32,0 +31,0 @@ }

@@ -23,3 +23,3 @@ /**

*/
id?: string;
id: string;
/**

@@ -30,3 +30,3 @@ *

*/
name?: string;
name: string;
}

@@ -33,0 +33,0 @@ export declare function OrganizationResponseOrganizationFromJSON(json: any): OrganizationResponseOrganization;

@@ -17,3 +17,2 @@ "use strict";

exports.OrganizationResponseOrganizationToJSON = exports.OrganizationResponseOrganizationFromJSONTyped = exports.OrganizationResponseOrganizationFromJSON = void 0;
const runtime_1 = require("../runtime");
function OrganizationResponseOrganizationFromJSON(json) {

@@ -28,4 +27,4 @@ return OrganizationResponseOrganizationFromJSONTyped(json, false);

return {
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
'id': json['id'],
'name': json['name'],
};

@@ -32,0 +31,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc