@arrowsphere/api-client 3.185.0-rc-cpe-1 → 3.186.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.
@@ -12,9 +12,7 @@ export declare enum ActionsGetFields {
12
12
  COLUMN_CANCEL = "cancel",
13
13
  COLUMN_CONVERSION = "conversion",
14
14
  COLUMN_PAUSE = "pause",
15
- COLUMN_UPGRADE = "upgrade",
16
- COLUMN_UPDATE_FRIENDLY_NAME = "updateFriendlyName",
17
- COLUMN_SCHEDULED_TASK = "scheduledTask"
15
+ COLUMN_UPGRADE = "upgrade"
18
16
  }
19
17
  export declare type ActionsGetData = {
20
18
  [ActionsGetFields.COLUMN_HISTORY]: string;
@@ -30,8 +28,6 @@ export declare type ActionsGetData = {
30
28
  [ActionsGetFields.COLUMN_CONVERSION]?: string;
31
29
  [ActionsGetFields.COLUMN_PAUSE]?: string;
32
30
  [ActionsGetFields.COLUMN_UPGRADE]?: string;
33
- [ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]?: string;
34
- [ActionsGetFields.COLUMN_SCHEDULED_TASK]?: string;
35
31
  };
36
32
  export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
37
33
  #private;
@@ -49,7 +45,5 @@ export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
49
45
  get conversion(): string | undefined;
50
46
  get pause(): string | undefined;
51
47
  get upgrade(): string | undefined;
52
- get updateFriendlyName(): string | undefined;
53
- get scheduledTask(): string | undefined;
54
48
  toJSON(): ActionsGetData;
55
49
  }
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade, _ActionsGetResult_updateFriendlyName, _ActionsGetResult_scheduledTask;
13
+ var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ActionsGetResult = exports.ActionsGetFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -29,8 +29,6 @@ var ActionsGetFields;
29
29
  ActionsGetFields["COLUMN_CONVERSION"] = "conversion";
30
30
  ActionsGetFields["COLUMN_PAUSE"] = "pause";
31
31
  ActionsGetFields["COLUMN_UPGRADE"] = "upgrade";
32
- ActionsGetFields["COLUMN_UPDATE_FRIENDLY_NAME"] = "updateFriendlyName";
33
- ActionsGetFields["COLUMN_SCHEDULED_TASK"] = "scheduledTask";
34
32
  })(ActionsGetFields = exports.ActionsGetFields || (exports.ActionsGetFields = {}));
35
33
  class ActionsGetResult extends abstractEntity_1.AbstractEntity {
36
34
  constructor(data) {
@@ -48,8 +46,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
48
46
  _ActionsGetResult_conversion.set(this, void 0);
49
47
  _ActionsGetResult_pause.set(this, void 0);
50
48
  _ActionsGetResult_upgrade.set(this, void 0);
51
- _ActionsGetResult_updateFriendlyName.set(this, void 0);
52
- _ActionsGetResult_scheduledTask.set(this, void 0);
53
49
  __classPrivateFieldSet(this, _ActionsGetResult_history, data[ActionsGetFields.COLUMN_HISTORY], "f");
54
50
  __classPrivateFieldSet(this, _ActionsGetResult_update, data[ActionsGetFields.COLUMN_UPDATE], "f");
55
51
  __classPrivateFieldSet(this, _ActionsGetResult_increaseSeats, data[ActionsGetFields.COLUMN_INCREASE_SEATS], "f");
@@ -63,8 +59,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
63
59
  __classPrivateFieldSet(this, _ActionsGetResult_conversion, data[ActionsGetFields.COLUMN_CONVERSION], "f");
64
60
  __classPrivateFieldSet(this, _ActionsGetResult_pause, data[ActionsGetFields.COLUMN_PAUSE], "f");
65
61
  __classPrivateFieldSet(this, _ActionsGetResult_upgrade, data[ActionsGetFields.COLUMN_UPGRADE], "f");
66
- __classPrivateFieldSet(this, _ActionsGetResult_updateFriendlyName, data[ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME], "f");
67
- __classPrivateFieldSet(this, _ActionsGetResult_scheduledTask, data[ActionsGetFields.COLUMN_SCHEDULED_TASK], "f");
68
62
  }
69
63
  get history() {
70
64
  return __classPrivateFieldGet(this, _ActionsGetResult_history, "f");
@@ -105,12 +99,6 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
105
99
  get upgrade() {
106
100
  return __classPrivateFieldGet(this, _ActionsGetResult_upgrade, "f");
107
101
  }
108
- get updateFriendlyName() {
109
- return __classPrivateFieldGet(this, _ActionsGetResult_updateFriendlyName, "f");
110
- }
111
- get scheduledTask() {
112
- return __classPrivateFieldGet(this, _ActionsGetResult_scheduledTask, "f");
113
- }
114
102
  toJSON() {
115
103
  return {
116
104
  [ActionsGetFields.COLUMN_HISTORY]: this.history,
@@ -126,11 +114,9 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
126
114
  [ActionsGetFields.COLUMN_CONVERSION]: this.conversion,
127
115
  [ActionsGetFields.COLUMN_PAUSE]: this.pause,
128
116
  [ActionsGetFields.COLUMN_UPGRADE]: this.upgrade,
129
- [ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]: this.updateFriendlyName,
130
- [ActionsGetFields.COLUMN_SCHEDULED_TASK]: this.scheduledTask,
131
117
  };
132
118
  }
133
119
  }
134
120
  exports.ActionsGetResult = ActionsGetResult;
135
- _ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap(), _ActionsGetResult_updateFriendlyName = new WeakMap(), _ActionsGetResult_scheduledTask = new WeakMap();
121
+ _ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap();
136
122
  //# sourceMappingURL=actionsGetResult.js.map
@@ -0,0 +1,34 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum AttachmentOrderFields {
3
+ COLUMN_LAST_MODIFIED = "lastModified",
4
+ COLUMN_METADATA = "metadata",
5
+ COLUMN_NAME = "name",
6
+ COLUMN_URL = "url"
7
+ }
8
+ export declare type AttachmentOrderType = {
9
+ [AttachmentOrderFields.COLUMN_LAST_MODIFIED]: string;
10
+ [AttachmentOrderFields.COLUMN_METADATA]?: Record<string, string>;
11
+ [AttachmentOrderFields.COLUMN_NAME]: string;
12
+ [AttachmentOrderFields.COLUMN_URL]: string;
13
+ };
14
+ export declare enum AttachmentsOrderListFields {
15
+ COLUMN_ATTACHMENTS = "attachments"
16
+ }
17
+ export declare type AttachmentsOrderListType = {
18
+ [AttachmentsOrderListFields.COLUMN_ATTACHMENTS]: AttachmentOrderType[];
19
+ };
20
+ export declare class AttachmentOrder extends AbstractEntity<AttachmentOrderType> {
21
+ #private;
22
+ constructor(attachmentOrderTypeInput: AttachmentOrderType);
23
+ get lastModified(): string;
24
+ get metadata(): Record<string, string> | undefined;
25
+ get name(): string;
26
+ get url(): string;
27
+ toJSON(): AttachmentOrderType;
28
+ }
29
+ export declare class AttachmentsListOrder extends AbstractEntity<AttachmentsOrderListType> {
30
+ #private;
31
+ constructor(attachmentsListOrderTypeInput: AttachmentsOrderListType);
32
+ get attachments(): AttachmentOrder[];
33
+ toJSON(): AttachmentsOrderListType;
34
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _AttachmentOrder_lastModified, _AttachmentOrder_metadata, _AttachmentOrder_name, _AttachmentOrder_url, _AttachmentsListOrder_attachments;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AttachmentsListOrder = exports.AttachmentOrder = exports.AttachmentsOrderListFields = exports.AttachmentOrderFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var AttachmentOrderFields;
18
+ (function (AttachmentOrderFields) {
19
+ AttachmentOrderFields["COLUMN_LAST_MODIFIED"] = "lastModified";
20
+ AttachmentOrderFields["COLUMN_METADATA"] = "metadata";
21
+ AttachmentOrderFields["COLUMN_NAME"] = "name";
22
+ AttachmentOrderFields["COLUMN_URL"] = "url";
23
+ })(AttachmentOrderFields = exports.AttachmentOrderFields || (exports.AttachmentOrderFields = {}));
24
+ var AttachmentsOrderListFields;
25
+ (function (AttachmentsOrderListFields) {
26
+ AttachmentsOrderListFields["COLUMN_ATTACHMENTS"] = "attachments";
27
+ })(AttachmentsOrderListFields = exports.AttachmentsOrderListFields || (exports.AttachmentsOrderListFields = {}));
28
+ class AttachmentOrder extends abstractEntity_1.AbstractEntity {
29
+ constructor(attachmentOrderTypeInput) {
30
+ super(attachmentOrderTypeInput);
31
+ _AttachmentOrder_lastModified.set(this, void 0);
32
+ _AttachmentOrder_metadata.set(this, void 0);
33
+ _AttachmentOrder_name.set(this, void 0);
34
+ _AttachmentOrder_url.set(this, void 0);
35
+ __classPrivateFieldSet(this, _AttachmentOrder_lastModified, attachmentOrderTypeInput[AttachmentOrderFields.COLUMN_LAST_MODIFIED], "f");
36
+ __classPrivateFieldSet(this, _AttachmentOrder_metadata, attachmentOrderTypeInput[AttachmentOrderFields.COLUMN_METADATA], "f");
37
+ __classPrivateFieldSet(this, _AttachmentOrder_name, attachmentOrderTypeInput[AttachmentOrderFields.COLUMN_NAME], "f");
38
+ __classPrivateFieldSet(this, _AttachmentOrder_url, attachmentOrderTypeInput[AttachmentOrderFields.COLUMN_URL], "f");
39
+ }
40
+ get lastModified() {
41
+ return __classPrivateFieldGet(this, _AttachmentOrder_lastModified, "f");
42
+ }
43
+ get metadata() {
44
+ return __classPrivateFieldGet(this, _AttachmentOrder_metadata, "f");
45
+ }
46
+ get name() {
47
+ return __classPrivateFieldGet(this, _AttachmentOrder_name, "f");
48
+ }
49
+ get url() {
50
+ return __classPrivateFieldGet(this, _AttachmentOrder_url, "f");
51
+ }
52
+ toJSON() {
53
+ return {
54
+ [AttachmentOrderFields.COLUMN_LAST_MODIFIED]: this.lastModified,
55
+ [AttachmentOrderFields.COLUMN_METADATA]: this.metadata,
56
+ [AttachmentOrderFields.COLUMN_NAME]: this.name,
57
+ [AttachmentOrderFields.COLUMN_URL]: this.url,
58
+ };
59
+ }
60
+ }
61
+ exports.AttachmentOrder = AttachmentOrder;
62
+ _AttachmentOrder_lastModified = new WeakMap(), _AttachmentOrder_metadata = new WeakMap(), _AttachmentOrder_name = new WeakMap(), _AttachmentOrder_url = new WeakMap();
63
+ class AttachmentsListOrder extends abstractEntity_1.AbstractEntity {
64
+ constructor(attachmentsListOrderTypeInput) {
65
+ super(attachmentsListOrderTypeInput);
66
+ _AttachmentsListOrder_attachments.set(this, void 0);
67
+ __classPrivateFieldSet(this, _AttachmentsListOrder_attachments, attachmentsListOrderTypeInput[AttachmentsOrderListFields.COLUMN_ATTACHMENTS].map((attachment) => new AttachmentOrder(attachment)), "f");
68
+ }
69
+ get attachments() {
70
+ return __classPrivateFieldGet(this, _AttachmentsListOrder_attachments, "f");
71
+ }
72
+ toJSON() {
73
+ return {
74
+ [AttachmentsOrderListFields.COLUMN_ATTACHMENTS]: this.attachments.map((attachment) => attachment.toJSON()),
75
+ };
76
+ }
77
+ }
78
+ exports.AttachmentsListOrder = AttachmentsListOrder;
79
+ _AttachmentsListOrder_attachments = new WeakMap();
80
+ //# sourceMappingURL=attachment.js.map
@@ -3,6 +3,7 @@ import { GetResult } from '../getResult';
3
3
  import { DataListOrders } from './entities/dataListOrders';
4
4
  import { ReferenceLink } from './entities/referenceLink';
5
5
  import { UpdateOrderResult } from './entities/orders/updateOrderResult';
6
+ import { AttachmentsListOrder } from './entities/orders/attachment';
6
7
  export declare enum CreateOrderInputFields {
7
8
  COLUMN_CUSTOMER = "customer",
8
9
  COLUMN_REFERENCE = "reference",
@@ -180,4 +181,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
180
181
  validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
181
182
  updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
182
183
  updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType, parameters?: Parameters): Promise<void>;
184
+ getAttachmentsOrder(orderReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsListOrder>>;
183
185
  }
@@ -6,6 +6,7 @@ const getResult_1 = require("../getResult");
6
6
  const dataListOrders_1 = require("./entities/dataListOrders");
7
7
  const referenceLink_1 = require("./entities/referenceLink");
8
8
  const updateOrderResult_1 = require("./entities/orders/updateOrderResult");
9
+ const attachment_1 = require("./entities/orders/attachment");
9
10
  var CreateOrderInputFields;
10
11
  (function (CreateOrderInputFields) {
11
12
  CreateOrderInputFields["COLUMN_CUSTOMER"] = "customer";
@@ -138,6 +139,16 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
138
139
  this.path = `/${orderReference}/additionalInformation`;
139
140
  await this.patch(payload, parameters);
140
141
  }
142
+ async getAttachmentsOrder(orderReference, perPage, page, parameters = {}) {
143
+ this.path = `/${orderReference}/attachments`;
144
+ if (perPage) {
145
+ this.setPerPage(perPage);
146
+ }
147
+ if (page) {
148
+ this.setPage(page);
149
+ }
150
+ return new getResult_1.GetResult(attachment_1.AttachmentsListOrder, await this.get(parameters));
151
+ }
141
152
  }
142
153
  exports.OrdersClient = OrdersClient;
143
154
  //# 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.185.0-rc-cpe-1",
7
+ "version": "3.186.0-rc-bdj-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",