@arrowsphere/api-client 3.194.0 → 3.195.0-rc-bdj-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.
@@ -1,4 +1,4 @@
1
- import { AbstractRestfulClient } from '../abstractRestfulClient';
1
+ import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
2
  import { GetResult } from '../getResult';
3
3
  import { DataListOrdersSoftware } from './entities/dataListOrderSoftware';
4
4
  export declare class OrderSoftwareClient extends AbstractRestfulClient {
@@ -8,4 +8,5 @@ export declare class OrderSoftwareClient extends AbstractRestfulClient {
8
8
  protected basePath: string;
9
9
  getOrdersList(dateBegin?: string): Promise<GetResult<DataListOrdersSoftware>>;
10
10
  getOrder(orderReference: string): Promise<GetResult<DataListOrdersSoftware>>;
11
+ deleteOrder(orderReference: string, parameters?: Parameters): Promise<void>;
11
12
  }
@@ -20,6 +20,10 @@ class OrderSoftwareClient extends abstractRestfulClient_1.AbstractRestfulClient
20
20
  this.path = `/${orderReference}`;
21
21
  return new getResult_1.GetResult(dataListOrderSoftware_1.DataListOrdersSoftware, await this.get());
22
22
  }
23
+ async deleteOrder(orderReference, parameters = {}) {
24
+ this.path = `/${orderReference}`;
25
+ await this.delete(parameters);
26
+ }
23
27
  }
24
28
  exports.OrderSoftwareClient = OrderSoftwareClient;
25
29
  //# sourceMappingURL=orderSoftwareClient.js.map
@@ -173,6 +173,9 @@ export declare type UploadAttachmentOrderInputType = {
173
173
  [UploadAttachmentOrderInputFields.COLUMN_NAME]: string;
174
174
  [UploadAttachmentOrderInputFields.COLUMN_FILE_ENCODED]: string;
175
175
  };
176
+ export declare type InjectionScenarioOrderInputType = {
177
+ [UploadAttachmentOrderInputFields.COLUMN_FILE_ENCODED]: string;
178
+ };
176
179
  export declare class OrdersClient extends AbstractRestfulClient {
177
180
  /**
178
181
  * The base path of the API
@@ -192,4 +195,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
192
195
  getAttachmentsOrder(orderReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsListOrder>>;
193
196
  deleteAttachmentOrder(orderReference: string, name: string, parameters?: Parameters): Promise<void>;
194
197
  uploadAttachmentOrder(orderReference: string, payload: UploadAttachmentOrderInputType, parameters?: Parameters): Promise<GetResult<AttachmentOrder>>;
198
+ injectionScenarioOrder(payload: InjectionScenarioOrderInputType, parameters?: Parameters): Promise<GetResult<AttachmentOrder>>;
195
199
  }
@@ -162,6 +162,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
162
162
  this.path = `/${orderReference}/attachment`;
163
163
  return new getResult_1.GetResult(attachment_1.AttachmentOrder, await this.post(payload, parameters));
164
164
  }
165
+ async injectionScenarioOrder(payload, parameters = {}) {
166
+ this.path = `/injectionScenario`;
167
+ return new getResult_1.GetResult(attachment_1.AttachmentOrder, await this.post(payload, parameters));
168
+ }
165
169
  }
166
170
  exports.OrdersClient = OrdersClient;
167
171
  //# sourceMappingURL=ordersClient.js.map
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.194.0",
7
+ "version": "3.195.0-rc-bdj-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",