@arrowsphere/api-client 3.186.0-rc-bdj-1 → 3.186.0-rc-bdj-3

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.
@@ -182,4 +182,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
182
182
  updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
183
183
  updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType, parameters?: Parameters): Promise<void>;
184
184
  getAttachmentsOrder(orderReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsListOrder>>;
185
+ deleteAttachmentOrder(orderReference: string, name: string, parameters?: Parameters): Promise<void>;
185
186
  }
@@ -140,7 +140,7 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
140
140
  await this.patch(payload, parameters);
141
141
  }
142
142
  async getAttachmentsOrder(orderReference, perPage, page, parameters = {}) {
143
- this.path = `/${orderReference}/attachments`;
143
+ this.path = `/${orderReference}/attachment`;
144
144
  if (perPage) {
145
145
  this.setPerPage(perPage);
146
146
  }
@@ -149,6 +149,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
149
149
  }
150
150
  return new getResult_1.GetResult(attachment_1.AttachmentsListOrder, await this.get(parameters));
151
151
  }
152
+ async deleteAttachmentOrder(orderReference, name, parameters = {}) {
153
+ this.path = `/${orderReference}/attachment/${name}`;
154
+ await this.delete(parameters);
155
+ }
152
156
  }
153
157
  exports.OrdersClient = OrdersClient;
154
158
  //# 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.186.0-rc-bdj-1",
7
+ "version": "3.186.0-rc-bdj-3",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",