@arrowsphere/api-client 3.102.0 → 3.103.0-rc.bdj.1
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.
|
@@ -220,6 +220,17 @@ export declare enum SaveBillingCommentsInputFields {
|
|
|
220
220
|
COLUMN_COMMENT_ONE = "comment1",
|
|
221
221
|
COLUMN_COMMENT_TWO = "comment2"
|
|
222
222
|
}
|
|
223
|
+
export declare enum SaveSpecialBidInputFields {
|
|
224
|
+
COLUMN_ARW_RATE_VALUE = "arwRateValue",
|
|
225
|
+
COLUMN_MSP_RATE_VALUE = "mspRateValue"
|
|
226
|
+
}
|
|
227
|
+
export declare enum RewriteRateHistoryInputFields {
|
|
228
|
+
COLUMN_COMPANY_TYPE = "companyType",
|
|
229
|
+
COLUMN_DATE_END = "dateEnd",
|
|
230
|
+
COLUMN_DATE_START = "dateStart",
|
|
231
|
+
COLUMN_RATE_TYPE = "rateType",
|
|
232
|
+
COLUMN_RATE = "rate"
|
|
233
|
+
}
|
|
223
234
|
export declare type SaveBillingCommentsInputType = {
|
|
224
235
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
|
|
225
236
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
|
|
@@ -240,6 +251,17 @@ export declare type GetLicensePricingRate = {
|
|
|
240
251
|
companyType: CompanyTypeEnum;
|
|
241
252
|
activeTime: SpecialPriceRateActive;
|
|
242
253
|
};
|
|
254
|
+
export declare type SaveSpecialBidInputType = {
|
|
255
|
+
[SaveSpecialBidInputFields.COLUMN_ARW_RATE_VALUE]: number;
|
|
256
|
+
[SaveSpecialBidInputFields.COLUMN_MSP_RATE_VALUE]?: number;
|
|
257
|
+
};
|
|
258
|
+
export declare type RewriteRateHistoryInputType = {
|
|
259
|
+
[RewriteRateHistoryInputFields.COLUMN_COMPANY_TYPE]: CompanyTypeEnum;
|
|
260
|
+
[RewriteRateHistoryInputFields.COLUMN_DATE_END]?: string;
|
|
261
|
+
[RewriteRateHistoryInputFields.COLUMN_DATE_START]: string;
|
|
262
|
+
[RewriteRateHistoryInputFields.COLUMN_RATE_TYPE]: string;
|
|
263
|
+
[RewriteRateHistoryInputFields.COLUMN_RATE]: number;
|
|
264
|
+
};
|
|
243
265
|
export declare class LicensesClient extends AbstractRestfulClient {
|
|
244
266
|
/**
|
|
245
267
|
* The base path of the API
|
|
@@ -293,6 +315,14 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
293
315
|
* The path to save the license order eavs
|
|
294
316
|
*/
|
|
295
317
|
private SAVE_BILLING_COMMENTS_PATH;
|
|
318
|
+
/**
|
|
319
|
+
* The path to save the license special bid
|
|
320
|
+
*/
|
|
321
|
+
private SAVE_SPECIAL_BID_PATH;
|
|
322
|
+
/**
|
|
323
|
+
* The path to rewrite the license rate history
|
|
324
|
+
*/
|
|
325
|
+
private REWRITE_RATE_HISTORY_PATH;
|
|
296
326
|
/**
|
|
297
327
|
* The path of license all available skus
|
|
298
328
|
*/
|
|
@@ -365,6 +395,8 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
365
395
|
setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
|
|
366
396
|
scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
|
|
367
397
|
getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
|
|
398
|
+
saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
|
|
399
|
+
rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
|
|
368
400
|
private createFilters;
|
|
369
401
|
private createKeywords;
|
|
370
402
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LicensesClient = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
|
|
3
|
+
exports.LicensesClient = exports.RewriteRateHistoryInputFields = exports.SaveSpecialBidInputFields = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Class LicensesClient
|
|
6
6
|
*/
|
|
@@ -122,6 +122,19 @@ var SaveBillingCommentsInputFields;
|
|
|
122
122
|
SaveBillingCommentsInputFields["COLUMN_COMMENT_ONE"] = "comment1";
|
|
123
123
|
SaveBillingCommentsInputFields["COLUMN_COMMENT_TWO"] = "comment2";
|
|
124
124
|
})(SaveBillingCommentsInputFields = exports.SaveBillingCommentsInputFields || (exports.SaveBillingCommentsInputFields = {}));
|
|
125
|
+
var SaveSpecialBidInputFields;
|
|
126
|
+
(function (SaveSpecialBidInputFields) {
|
|
127
|
+
SaveSpecialBidInputFields["COLUMN_ARW_RATE_VALUE"] = "arwRateValue";
|
|
128
|
+
SaveSpecialBidInputFields["COLUMN_MSP_RATE_VALUE"] = "mspRateValue";
|
|
129
|
+
})(SaveSpecialBidInputFields = exports.SaveSpecialBidInputFields || (exports.SaveSpecialBidInputFields = {}));
|
|
130
|
+
var RewriteRateHistoryInputFields;
|
|
131
|
+
(function (RewriteRateHistoryInputFields) {
|
|
132
|
+
RewriteRateHistoryInputFields["COLUMN_COMPANY_TYPE"] = "companyType";
|
|
133
|
+
RewriteRateHistoryInputFields["COLUMN_DATE_END"] = "dateEnd";
|
|
134
|
+
RewriteRateHistoryInputFields["COLUMN_DATE_START"] = "dateStart";
|
|
135
|
+
RewriteRateHistoryInputFields["COLUMN_RATE_TYPE"] = "rateType";
|
|
136
|
+
RewriteRateHistoryInputFields["COLUMN_RATE"] = "rate";
|
|
137
|
+
})(RewriteRateHistoryInputFields = exports.RewriteRateHistoryInputFields || (exports.RewriteRateHistoryInputFields = {}));
|
|
125
138
|
class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
126
139
|
constructor() {
|
|
127
140
|
super(...arguments);
|
|
@@ -177,6 +190,14 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
177
190
|
* The path to save the license order eavs
|
|
178
191
|
*/
|
|
179
192
|
this.SAVE_BILLING_COMMENTS_PATH = '/billingComments';
|
|
193
|
+
/**
|
|
194
|
+
* The path to save the license special bid
|
|
195
|
+
*/
|
|
196
|
+
this.SAVE_SPECIAL_BID_PATH = '/special-bid';
|
|
197
|
+
/**
|
|
198
|
+
* The path to rewrite the license rate history
|
|
199
|
+
*/
|
|
200
|
+
this.REWRITE_RATE_HISTORY_PATH = '/rewrite-rate-history';
|
|
180
201
|
/**
|
|
181
202
|
* The path of license all available skus
|
|
182
203
|
*/
|
|
@@ -414,6 +435,14 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
414
435
|
this.path = `/${licenseReference}/predictions/daily`;
|
|
415
436
|
return new getResult_1.GetResult(consumption_1.ConsumptionDailyPrediction, await this.get(parameters));
|
|
416
437
|
}
|
|
438
|
+
async saveSpecialdBid(licenseReference, payload, parameters = {}) {
|
|
439
|
+
this.path = `/${licenseReference}${this.SAVE_SPECIAL_BID_PATH}`;
|
|
440
|
+
await this.post(payload, parameters);
|
|
441
|
+
}
|
|
442
|
+
async rewriteRateHistory(licenseReference, payload, parameters = {}) {
|
|
443
|
+
this.path = `/${licenseReference}${this.REWRITE_RATE_HISTORY_PATH}`;
|
|
444
|
+
await this.post(payload, parameters);
|
|
445
|
+
}
|
|
417
446
|
createFilters(parameters, keyParent) {
|
|
418
447
|
let appropriateParameters;
|
|
419
448
|
if (typeof parameters === 'object') {
|
package/package.json
CHANGED