@arrowsphere/api-client 3.103.0 → 3.105.0-rc.fdi.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.
package/CHANGELOG.md CHANGED
@@ -3,26 +3,32 @@
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.103.0] - 2024.03.22
6
+ ## [3.105.0] - 2024.04.03
7
+
8
+ ### Added
9
+ - [Customers Contact] add field `organizationUnitIds` in customer contact payload
10
+
11
+ ## [3.104.0] - 2024.03.25
7
12
 
8
13
  ### Added
14
+ - [licenses] add endpoints to save special bid and rewrite rate history
9
15
 
16
+ ## [3.103.0] - 2024.03.22
17
+
18
+ ### Added
10
19
  - [campaign] add downloadUrls field on campaign
11
20
 
12
21
  ## [3.101.0] - 2024.03.19
13
22
 
14
23
  ### Added
15
-
16
24
  - [customer/contact] add organization object in customer contact payload
17
25
 
18
26
  ### Updated
19
-
20
27
  - Add sommes configs for IDE
21
28
 
22
29
  ## [3.101.0] - 2024.03.19
23
30
 
24
31
  ### Added
25
-
26
32
  - [licenses] add new field configs and warnings
27
33
  - [licenses] add new endpoint to get daily consumption predictions
28
34
 
@@ -32,7 +38,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
32
38
  ## [3.100.0] - 2024.02.27
33
39
 
34
40
  ### Added
35
-
36
41
  - [consumption] add endpoint to get and update budget settings
37
42
  - [graphql-api] add license budget
38
43
  - [licenses] add new field vendor_code
@@ -40,10 +45,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40
45
  ## [3.99.0] - 2024.02.20
41
46
 
42
47
  ### Added
43
-
44
48
  - [billing] add generate billing export async
45
49
 
46
50
  ## [3.98.0] - 2024-02-14
51
+
47
52
  ### Added
48
53
  - [Well Architected] Add the Reports to the different schema
49
54
 
@@ -52,7 +57,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
52
57
  ### Updated
53
58
  - [licenses] update filters and keywords for licenses
54
59
 
55
-
56
60
  ## [3.96.0] - 2024.02.06
57
61
 
58
62
  ### Added
@@ -15,7 +15,8 @@ export declare enum CustomerContactPayloadFields {
15
15
  COLUMN_USERNAME = "username",
16
16
  COLUMN_TYPE = "type",
17
17
  COLUMN_ROLE = "role",
18
- COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
18
+ COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
19
+ COLUMN_ORGANIZATION_UNIT_IDS = "organizationUnitIds"
19
20
  }
20
21
  export declare type PostCustomerContactPayload = {
21
22
  [CustomerContactPayloadFields.COLUMN_FIRST_NAME]: string;
@@ -26,6 +27,7 @@ export declare type PostCustomerContactPayload = {
26
27
  [CustomerContactPayloadFields.COLUMN_TYPE]: CustomerContactTypeType;
27
28
  [CustomerContactPayloadFields.COLUMN_ROLE]: CustomerContactRoleType;
28
29
  [CustomerContactPayloadFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
30
+ [CustomerContactPayloadFields.COLUMN_ORGANIZATION_UNIT_IDS]?: number[];
29
31
  };
30
32
  export declare type PostCustomerContact = {
31
33
  [ContactFields.COLUMN_FIRSTNAME]: string;
@@ -20,6 +20,7 @@ var CustomerContactPayloadFields;
20
20
  CustomerContactPayloadFields["COLUMN_TYPE"] = "type";
21
21
  CustomerContactPayloadFields["COLUMN_ROLE"] = "role";
22
22
  CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
23
+ CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_IDS"] = "organizationUnitIds";
23
24
  })(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
24
25
  var PostCustomerInvitationFields;
25
26
  (function (PostCustomerInvitationFields) {
@@ -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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.103.0",
7
+ "version": "3.105.0-rc.fdi.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",