@arrowsphere/api-client 3.238.0-rc-jpb.1 → 3.238.0-rc-jpb.2

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.
@@ -139,6 +139,10 @@ export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizati
139
139
  offer?: OfferType;
140
140
  endCustomerOrganizationUnit?: endCustomerOrganizationUnitType;
141
141
  };
142
+ export declare type AttachFileToLicenseParameters = {
143
+ name: string;
144
+ fileEncoded: string;
145
+ };
142
146
  export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters>;
143
147
  export declare type LicenseCompareParameters = {
144
148
  [field: string]: unknown;
@@ -399,6 +403,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
399
403
  */
400
404
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
401
405
  findAttachments(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseAttachmentsResult>>;
406
+ attachFileToLicense(licenseReference: string, parameters: AttachFileToLicenseParameters): Promise<any>;
402
407
  getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
403
408
  getConfigsRaw(reference: string): Promise<FindConfig>;
404
409
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
@@ -321,6 +321,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
321
321
  this.path = `/${licenseReference}/attachment`;
322
322
  return new getResult_1.GetResult(GetLicenseAttachmentsResult_1.GetLicenseAttachmentsResult, await this.get(parameters));
323
323
  }
324
+ async attachFileToLicense(licenseReference, parameters) {
325
+ this.path = `/${licenseReference}/attachment`;
326
+ return await this.post(parameters);
327
+ }
324
328
  async getScheduledTasks(licenseReference, parameters = {}) {
325
329
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
326
330
  const response = await this.get(parameters);
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.238.0-rc-jpb.1",
7
+ "version": "3.238.0-rc-jpb.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",