@sonoransoftware/sonoran.js 1.0.28 → 1.0.29
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/dist/libs/rest/src/lib/REST.js +1 -1
- package/dist/libs/rest/src/lib/utils/constants.d.ts +1 -1
- package/dist/managers/CMSManager.d.ts +2 -2
- package/dist/managers/CMSManager.js +3 -3
- package/package.json +1 -1
- package/src/libs/rest/src/lib/REST.ts +1 -1
- package/src/libs/rest/src/lib/utils/constants.ts +1 -1
- package/src/managers/CMSManager.ts +3 -3
|
@@ -428,7 +428,7 @@ export interface RESTTypedAPIDataStructs {
|
|
|
428
428
|
apiId: string | undefined,
|
|
429
429
|
username: string | undefined,
|
|
430
430
|
accId: string | undefined,
|
|
431
|
-
|
|
431
|
+
discord: string | undefined,
|
|
432
432
|
uniqueId: string | undefined,
|
|
433
433
|
newName: string
|
|
434
434
|
];
|
|
@@ -113,10 +113,10 @@ export declare class CMSManager extends BaseManager {
|
|
|
113
113
|
* @param {string} [data.apiId] (Optional) The api id to set the account name.
|
|
114
114
|
* @param {string} [data.username] (Optional) The username to set the account name.
|
|
115
115
|
* @param {string} [data.accId] (Optional) The account id to set the account name.
|
|
116
|
-
* @param {string} [data.
|
|
116
|
+
* @param {string} [data.discord] (Optional) The discord id to set the account name.
|
|
117
117
|
* @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
|
|
118
118
|
* @param {string} [data.newName] (Optional) The new name to set the account name.
|
|
119
119
|
* @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
|
|
120
120
|
*/
|
|
121
|
-
setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined,
|
|
121
|
+
setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discord: string | undefined, uniqueId: string | undefined, newName: string): Promise<globalTypes.CMSSetAccountNamePromiseResult>;
|
|
122
122
|
}
|
|
@@ -270,16 +270,16 @@ class CMSManager extends BaseManager_1.BaseManager {
|
|
|
270
270
|
* @param {string} [data.apiId] (Optional) The api id to set the account name.
|
|
271
271
|
* @param {string} [data.username] (Optional) The username to set the account name.
|
|
272
272
|
* @param {string} [data.accId] (Optional) The account id to set the account name.
|
|
273
|
-
* @param {string} [data.
|
|
273
|
+
* @param {string} [data.discord] (Optional) The discord id to set the account name.
|
|
274
274
|
* @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
|
|
275
275
|
* @param {string} [data.newName] (Optional) The new name to set the account name.
|
|
276
276
|
* @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
|
|
277
277
|
*/
|
|
278
|
-
async setAccountName(apiId, username, accId,
|
|
278
|
+
async setAccountName(apiId, username, accId, discord, uniqueId, newName) {
|
|
279
279
|
return new Promise(async (resolve, reject) => {
|
|
280
280
|
var _a;
|
|
281
281
|
try {
|
|
282
|
-
const setAccountNameRequest = await ((_a = this.rest) === null || _a === void 0 ? void 0 : _a.request('SET_ACCOUNT_NAME', apiId, username, accId,
|
|
282
|
+
const setAccountNameRequest = await ((_a = this.rest) === null || _a === void 0 ? void 0 : _a.request('SET_ACCOUNT_NAME', apiId, username, accId, discord, uniqueId, newName));
|
|
283
283
|
resolve({ success: true, data: setAccountNameRequest });
|
|
284
284
|
}
|
|
285
285
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonoransoftware/sonoran.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -896,7 +896,7 @@ export interface RESTTypedAPIDataStructs {
|
|
|
896
896
|
apiId: string | undefined,
|
|
897
897
|
username: string | undefined,
|
|
898
898
|
accId: string | undefined,
|
|
899
|
-
|
|
899
|
+
discord: string | undefined,
|
|
900
900
|
uniqueId: string | undefined,
|
|
901
901
|
newName: string,
|
|
902
902
|
],
|
|
@@ -233,15 +233,15 @@ export class CMSManager extends BaseManager {
|
|
|
233
233
|
* @param {string} [data.apiId] (Optional) The api id to set the account name.
|
|
234
234
|
* @param {string} [data.username] (Optional) The username to set the account name.
|
|
235
235
|
* @param {string} [data.accId] (Optional) The account id to set the account name.
|
|
236
|
-
* @param {string} [data.
|
|
236
|
+
* @param {string} [data.discord] (Optional) The discord id to set the account name.
|
|
237
237
|
* @param {string} [data.uniqueId] (Optional) The unique id to set the account name.
|
|
238
238
|
* @param {string} [data.newName] (Optional) The new name to set the account name.
|
|
239
239
|
* @returns {Promise} Promise object represents if the request was successful with reason for failure if needed.
|
|
240
240
|
*/
|
|
241
|
-
public async setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined,
|
|
241
|
+
public async setAccountName(apiId: string | undefined, username: string | undefined, accId: string | undefined, discord: string | undefined, uniqueId: string | undefined, newName: string ): Promise<globalTypes.CMSSetAccountNamePromiseResult> {
|
|
242
242
|
return new Promise(async (resolve, reject) => {
|
|
243
243
|
try {
|
|
244
|
-
const setAccountNameRequest: any = await this.rest?.request('SET_ACCOUNT_NAME', apiId, username, accId,
|
|
244
|
+
const setAccountNameRequest: any = await this.rest?.request('SET_ACCOUNT_NAME', apiId, username, accId, discord, uniqueId, newName);
|
|
245
245
|
resolve({ success: true, data: setAccountNameRequest });
|
|
246
246
|
} catch (err) {
|
|
247
247
|
if (err instanceof APIError) {
|