@arrowsphere/api-client 3.362.0 → 3.363.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.363.0] - 2026.04.22
|
|
7
|
+
|
|
8
|
+
### Updated
|
|
9
|
+
|
|
10
|
+
- [partners] Enable partners to create and revoke API keys
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [3.362.0] - 2026.04.22
|
|
7
14
|
|
|
8
15
|
### Updated
|
|
@@ -184,8 +184,10 @@ export declare class PartnerClient extends AbstractRestfulClient {
|
|
|
184
184
|
getUserImpersonations(partnerReference: string, userReference: string, parameters?: Parameters): Promise<GetResult<GetUserImpersonationsResult>>;
|
|
185
185
|
postPartner(payload: PostPartnerPayload, parameters?: Parameters): Promise<GetResult<DataPartner>>;
|
|
186
186
|
getUserApiKeys(filters?: GetUserApiKeysFilters, parameters?: Parameters): Promise<GetResult<GetUserApiKeysResult>>;
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
adminDeleteUserApiKey(partnerReference: string, userReference: string, apikeyReference: string, parameters?: Parameters): Promise<void>;
|
|
188
|
+
deleteUserApiKey(apikeyReference: string, parameters?: Parameters): Promise<void>;
|
|
189
|
+
adminCreateUserApiKey(partnerReference: string, userReference: string, payload: CreateUserApiKeyPayload, parameters?: Parameters): Promise<GetResult<CreateUserApiKeyResult>>;
|
|
190
|
+
createUserApiKey(payload: CreateUserApiKeyPayload, parameters?: Parameters): Promise<GetResult<CreateUserApiKeyResult>>;
|
|
189
191
|
postCustomField(entity: CustomFieldEntityEnum, payload: createCustomFieldType, parameters?: Parameters): Promise<GetResult<CustomFieldResponse>>;
|
|
190
192
|
getCustomFieldList(entity: CustomFieldEntityEnum, filters?: GetCustomFieldListFilters, parameters?: Parameters): Promise<GetResult<CustomFieldListResponse>>;
|
|
191
193
|
patchCustomField(customFieldId: number, isActive: boolean, parameters?: Parameters): Promise<GetResult<CustomFieldResponse>>;
|
|
@@ -166,14 +166,22 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
166
166
|
};
|
|
167
167
|
return new getResult_1.GetResult(getUserApiKeysResult_1.GetUserApiKeysResult, await this.get(queryParameters));
|
|
168
168
|
}
|
|
169
|
-
async
|
|
169
|
+
async adminDeleteUserApiKey(partnerReference, userReference, apikeyReference, parameters = {}) {
|
|
170
170
|
this.path = `/${partnerReference}/users/${userReference}/apikeys/${apikeyReference}`;
|
|
171
171
|
return this.delete(parameters);
|
|
172
172
|
}
|
|
173
|
-
async
|
|
173
|
+
async deleteUserApiKey(apikeyReference, parameters = {}) {
|
|
174
|
+
this.path = `/users/apikeys/${apikeyReference}`;
|
|
175
|
+
return this.delete(parameters);
|
|
176
|
+
}
|
|
177
|
+
async adminCreateUserApiKey(partnerReference, userReference, payload, parameters = {}) {
|
|
174
178
|
this.path = `/${partnerReference}/users/${userReference}/apikeys`;
|
|
175
179
|
return new getResult_1.GetResult(createUserApiKeyResult_1.CreateUserApiKeyResult, await this.post(payload, parameters));
|
|
176
180
|
}
|
|
181
|
+
async createUserApiKey(payload, parameters = {}) {
|
|
182
|
+
this.path = `/users/apikeys`;
|
|
183
|
+
return new getResult_1.GetResult(createUserApiKeyResult_1.CreateUserApiKeyResult, await this.post(payload, parameters));
|
|
184
|
+
}
|
|
177
185
|
async postCustomField(entity, payload, parameters = {}) {
|
|
178
186
|
this.path = `/customField/entity/${entity}`;
|
|
179
187
|
return new getResult_1.GetResult(CustomFieldResponse_1.CustomFieldResponse, await this.post(payload, parameters));
|
package/package.json
CHANGED