@arrowsphere/api-client 3.182.0 → 3.184.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/customers/customersClient.d.ts +4 -0
  3. package/build/customers/customersClient.js +13 -0
  4. package/build/customers/entities/customerProvision.d.ts +23 -0
  5. package/build/customers/entities/customerProvision.js +52 -0
  6. package/build/graphqlApi/index.d.ts +3 -0
  7. package/build/graphqlApi/index.js +3 -0
  8. package/build/graphqlApi/types/entities/contributor.d.ts +17 -0
  9. package/build/graphqlApi/types/entities/contributor.js +3 -0
  10. package/build/graphqlApi/types/entities/disclaimer.d.ts +8 -0
  11. package/build/graphqlApi/types/entities/disclaimer.js +3 -0
  12. package/build/graphqlApi/types/entities/eav.d.ts +7 -0
  13. package/build/graphqlApi/types/entities/eav.js +3 -0
  14. package/build/graphqlApi/types/entities/order.d.ts +53 -0
  15. package/build/graphqlApi/types/entities/program.d.ts +5 -1
  16. package/build/graphqlApi/types/graphqlApiQueries.d.ts +7 -0
  17. package/build/graphqlApi/types/graphqlApiQueries.js +2 -0
  18. package/build/graphqlApi/types/graphqlApiSchemas.d.ts +10 -1
  19. package/build/index.d.ts +11 -10
  20. package/build/index.js +11 -10
  21. package/build/monitoring/index.d.ts +1 -0
  22. package/build/monitoring/index.js +18 -0
  23. package/build/monitoring/monitoringClient.d.ts +20 -0
  24. package/build/monitoring/monitoringClient.js +23 -0
  25. package/build/orders/index.d.ts +1 -0
  26. package/build/orders/index.js +1 -0
  27. package/build/orders/ordersClient.d.ts +14 -0
  28. package/build/orders/ordersClient.js +30 -1
  29. package/build/publicApiClient.d.ts +2 -0
  30. package/build/publicApiClient.js +6 -0
  31. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.183.0] - 2025.03.21
7
+
8
+ ### Added
9
+ - [monitoring] add send monitoring report
10
+ - [company] add company start provision `postCustomerProvision`
11
+ - [company] add company get provision status `getCustomerProvision`
12
+ - [company] add company cancel migration `cancelCustomerMigration`
13
+
6
14
  ## [3.182.0] - 2025.03.21
7
15
 
8
16
  ### Added
@@ -7,6 +7,7 @@ import { CustomerContactList } from './entities/customers/customerContact/custom
7
7
  import { CustomerContact, CustomerContactRoleType, CustomerContactTypeType } from './entities/customers/customerContact/customerContact';
8
8
  import { CustomerFields, CustomerType } from './entities/customers/customer';
9
9
  import { ContactFields } from './entities/customers/contact/contact';
10
+ import { CustomerProvision } from './entities/customerProvision';
10
11
  export declare enum CustomerMigrationAttributeFields {
11
12
  NAME = "name",
12
13
  VALUE = "value"
@@ -130,4 +131,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
130
131
  postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
131
132
  postCustomerMigration(customerReference: string, payload: PostCustomerMigrationPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerMigration | APIResponseError>;
132
133
  postReconciliationCustomers(program: string, parameters?: Parameters): Promise<void>;
134
+ cancelCustomerMigration(customerReference: string, program: string): Promise<void | APIResponseError>;
135
+ postCustomerProvision(customerReference: string, payload: PostCustomerMigrationPayload): Promise<void>;
136
+ getCustomerProvision(customerReference: string, program: string): Promise<GetResult<CustomerProvision>>;
133
137
  }
@@ -10,6 +10,7 @@ const customerContactList_1 = require("./entities/customers/customerContact/cust
10
10
  const customerContact_1 = require("./entities/customers/customerContact/customerContact");
11
11
  const customer_1 = require("./entities/customers/customer");
12
12
  const contact_1 = require("./entities/customers/contact/contact");
13
+ const customerProvision_1 = require("./entities/customerProvision");
13
14
  var CustomerMigrationAttributeFields;
14
15
  (function (CustomerMigrationAttributeFields) {
15
16
  CustomerMigrationAttributeFields["NAME"] = "name";
@@ -110,6 +111,18 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
110
111
  this.path = '/reconciliation';
111
112
  await this.post({ program }, parameters);
112
113
  }
114
+ async cancelCustomerMigration(customerReference, program) {
115
+ this.path = `/${customerReference}/migration`;
116
+ await this.delete({ program });
117
+ }
118
+ async postCustomerProvision(customerReference, payload) {
119
+ this.path = `/${customerReference}/provision`;
120
+ return await this.post(payload);
121
+ }
122
+ async getCustomerProvision(customerReference, program) {
123
+ this.path = `/${customerReference}/provision`;
124
+ return new getResult_1.GetResult(customerProvision_1.CustomerProvision, await this.get({ program }));
125
+ }
113
126
  }
114
127
  exports.CustomersClient = CustomersClient;
115
128
  //# sourceMappingURL=customersClient.js.map
@@ -0,0 +1,23 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum CustomerProvisionFields {
3
+ COLUMN_STATUS = "status",
4
+ COLUMN_MESSAGE = "message",
5
+ COLUMN_ATTRIBUTES = "attributes"
6
+ }
7
+ export declare type CustomerProvisionType = {
8
+ [CustomerProvisionFields.COLUMN_STATUS]: string;
9
+ [CustomerProvisionFields.COLUMN_MESSAGE]: string;
10
+ [CustomerProvisionFields.COLUMN_ATTRIBUTES]: {
11
+ [key: string]: string;
12
+ };
13
+ };
14
+ export declare class CustomerProvision extends AbstractEntity<CustomerProvisionType> {
15
+ #private;
16
+ constructor(data: CustomerProvisionType);
17
+ get status(): string;
18
+ get message(): string;
19
+ get attributes(): {
20
+ [key: string]: string;
21
+ };
22
+ toJSON(): CustomerProvisionType;
23
+ }
@@ -0,0 +1,52 @@
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 _CustomerProvision_status, _CustomerProvision_message, _CustomerProvision_attributes;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CustomerProvision = exports.CustomerProvisionFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var CustomerProvisionFields;
18
+ (function (CustomerProvisionFields) {
19
+ CustomerProvisionFields["COLUMN_STATUS"] = "status";
20
+ CustomerProvisionFields["COLUMN_MESSAGE"] = "message";
21
+ CustomerProvisionFields["COLUMN_ATTRIBUTES"] = "attributes";
22
+ })(CustomerProvisionFields = exports.CustomerProvisionFields || (exports.CustomerProvisionFields = {}));
23
+ class CustomerProvision extends abstractEntity_1.AbstractEntity {
24
+ constructor(data) {
25
+ super(data);
26
+ _CustomerProvision_status.set(this, void 0);
27
+ _CustomerProvision_message.set(this, void 0);
28
+ _CustomerProvision_attributes.set(this, void 0);
29
+ __classPrivateFieldSet(this, _CustomerProvision_status, data.status, "f");
30
+ __classPrivateFieldSet(this, _CustomerProvision_message, data.message, "f");
31
+ __classPrivateFieldSet(this, _CustomerProvision_attributes, data.attributes, "f");
32
+ }
33
+ get status() {
34
+ return __classPrivateFieldGet(this, _CustomerProvision_status, "f");
35
+ }
36
+ get message() {
37
+ return __classPrivateFieldGet(this, _CustomerProvision_message, "f");
38
+ }
39
+ get attributes() {
40
+ return __classPrivateFieldGet(this, _CustomerProvision_attributes, "f");
41
+ }
42
+ toJSON() {
43
+ return {
44
+ [CustomerProvisionFields.COLUMN_STATUS]: this.status,
45
+ [CustomerProvisionFields.COLUMN_MESSAGE]: this.message,
46
+ [CustomerProvisionFields.COLUMN_ATTRIBUTES]: this.attributes,
47
+ };
48
+ }
49
+ }
50
+ exports.CustomerProvision = CustomerProvision;
51
+ _CustomerProvision_status = new WeakMap(), _CustomerProvision_message = new WeakMap(), _CustomerProvision_attributes = new WeakMap();
52
+ //# sourceMappingURL=customerProvision.js.map
@@ -2,8 +2,11 @@ export * from './types/graphqlApiQueries';
2
2
  export * from './types/graphqlApiSchemas';
3
3
  export * from './types/entities/contact';
4
4
  export * from './types/entities/company';
5
+ export * from './types/entities/contributor';
5
6
  export * from './types/entities/country';
6
7
  export * from './types/entities/currency';
8
+ export * from './types/entities/disclaimer';
9
+ export * from './types/entities/eav';
7
10
  export * from './types/entities/licenseBudget';
8
11
  export * from './types/entities/order';
9
12
  export * from './types/entities/organizationUnit';
@@ -18,8 +18,11 @@ __exportStar(require("./types/graphqlApiQueries"), exports);
18
18
  __exportStar(require("./types/graphqlApiSchemas"), exports);
19
19
  __exportStar(require("./types/entities/contact"), exports);
20
20
  __exportStar(require("./types/entities/company"), exports);
21
+ __exportStar(require("./types/entities/contributor"), exports);
21
22
  __exportStar(require("./types/entities/country"), exports);
22
23
  __exportStar(require("./types/entities/currency"), exports);
24
+ __exportStar(require("./types/entities/disclaimer"), exports);
25
+ __exportStar(require("./types/entities/eav"), exports);
23
26
  __exportStar(require("./types/entities/licenseBudget"), exports);
24
27
  __exportStar(require("./types/entities/order"), exports);
25
28
  __exportStar(require("./types/entities/organizationUnit"), exports);
@@ -0,0 +1,17 @@
1
+ import { WorkgroupType } from './workgroup';
2
+ export declare type GraphqlApiContributorType = {
3
+ id?: number;
4
+ icst?: GraphqlApiStaffType;
5
+ isr?: GraphqlApiStaffType;
6
+ fcst?: GraphqlApiStaffType;
7
+ fsr?: GraphqlApiStaffType;
8
+ sor?: GraphqlApiStaffType;
9
+ };
10
+ export declare type GraphqlApiStaffType = {
11
+ id?: number;
12
+ firstname?: string;
13
+ internalId?: string;
14
+ lastname?: string;
15
+ locked?: boolean;
16
+ workgroup?: WorkgroupType;
17
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=contributor.js.map
@@ -0,0 +1,8 @@
1
+ import { GraphqlApiProgramType } from './program';
2
+ import { WorkgroupType } from './workgroup';
3
+ export declare type GraphqlApiDisclaimerType = {
4
+ id?: number;
5
+ content?: string;
6
+ program?: GraphqlApiProgramType;
7
+ workgroup?: WorkgroupType;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=disclaimer.js.map
@@ -0,0 +1,7 @@
1
+ export declare type GraphqlApiEavType = {
2
+ id?: number;
3
+ name?: string;
4
+ resourceId?: number;
5
+ type?: string;
6
+ value?: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=eav.js.map
@@ -1,12 +1,48 @@
1
+ import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
2
+ import { ContactsType } from './contact';
3
+ import { GraphqlApiContributorType } from './contributor';
4
+ import { GraphqlApiEavType } from './eav';
5
+ import { GraphqlApiProgramType } from './program';
6
+ import { ItemData, QuoteType } from './quote';
1
7
  import { SpecialPriceRateType } from './specialPriceRate';
2
8
  import { GraphqlApiUnitType } from './unit';
9
+ import { UserType } from './user';
3
10
  export declare type OrdersType = {
4
11
  id?: number;
12
+ arrowCompany?: ArrowCompanyType;
13
+ arrowContact?: ContactsType;
14
+ commitmentAmountTotal?: number;
15
+ contributor?: GraphqlApiContributorType;
16
+ createdAt?: string;
17
+ eavs?: GraphqlApiEavType[];
18
+ endCustomer?: EndCustomerType;
19
+ endCustomerContact?: ContactsType;
20
+ endCustomerPoNumber?: string;
21
+ fulfilledAt?: string;
5
22
  items?: OrderItemsType[];
23
+ partner?: PartnerType;
24
+ partnerContact?: ContactsType;
25
+ partnerPoNumber?: string;
26
+ poNumber?: string;
27
+ quote?: QuoteType;
28
+ reference?: string;
29
+ scheduledAt?: string;
30
+ status?: GraphqlApiOrderStatusType;
31
+ totalRecurringPrice?: number;
32
+ updatedAt?: string;
33
+ uuid?: number;
6
34
  };
7
35
  export declare type OrderItemsType = {
8
36
  id?: number;
37
+ itemData?: ItemData;
38
+ migratedFrom?: GraphqlApiOrderLinkType[];
39
+ migratedTo?: GraphqlApiOrderLinkType[];
40
+ name?: string;
41
+ order?: OrdersType;
9
42
  priceRates?: SpecialPriceRateType[];
43
+ program?: GraphqlApiProgramType;
44
+ reference?: string;
45
+ status?: GraphqlApiOrderStatusType;
10
46
  };
11
47
  export declare type GraphqlApiOrderSoftwareType = {
12
48
  id?: number;
@@ -14,3 +50,20 @@ export declare type GraphqlApiOrderSoftwareType = {
14
50
  totalAmount?: number;
15
51
  unit?: GraphqlApiUnitType;
16
52
  };
53
+ export declare type GraphqlApiOrderStatusType = {
54
+ id?: number;
55
+ name?: string;
56
+ };
57
+ export declare type GraphqlApiOrderLinkType = {
58
+ from?: OrderItemsType;
59
+ migratedAt?: string;
60
+ to?: OrderItemsType;
61
+ };
62
+ export declare type GraphqlApiOrderHistoryType = {
63
+ id?: number;
64
+ action?: string;
65
+ createdAt?: string;
66
+ description?: string;
67
+ order?: OrdersType;
68
+ user?: UserType;
69
+ };
@@ -1,18 +1,22 @@
1
1
  import { PartnerType } from './company';
2
+ import { GraphqlApiDisclaimerType } from './disclaimer';
2
3
  import { SubscriptionType } from './subscription';
3
4
  import { VendorsType } from './vendor';
4
5
  export declare type GraphqlApiProgramType = {
5
6
  id?: number;
6
7
  bypassReport?: number;
7
8
  description?: string;
9
+ disclaimer?: GraphqlApiDisclaimerType;
8
10
  internalName?: string;
9
11
  introduction?: string;
10
12
  levels?: ProgramLevelType[];
11
13
  name?: string;
12
14
  subscriptionExtraFields?: SubscriptionExtraFieldType[];
15
+ type?: GraphqlApiProgramTypeType;
13
16
  url?: string;
14
17
  vendor?: VendorsType;
15
- type?: GraphqlApiProgramTypeType;
18
+ vendorReference?: string;
19
+ xacVendorCode?: string;
16
20
  };
17
21
  export declare type GraphqlApiProgramTypeType = {
18
22
  id?: number;
@@ -2,6 +2,7 @@ import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/compa
2
2
  import { ContactsType } from './entities/contact';
3
3
  import { ContinentType, CountryType } from './entities/country';
4
4
  import { LicenseBudgetType } from './entities/licenseBudget';
5
+ import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
5
6
  import { OrganizationUnitsType } from './entities/organizationUnit';
6
7
  import { PartnertagType } from './entities/partnertag';
7
8
  import { GraphqlApiProgramType, ProgramLevelOptionGroupType, SubscribedProgramType } from './entities/program';
@@ -123,6 +124,8 @@ export declare enum SelectDataField {
123
124
  END_CUSTOMER = "endCustomer",
124
125
  LICENSE_BUDGET = "licenseBudget",
125
126
  ORGANIZATION_UNIT = "organizationUnit",
127
+ ORDER = "order",
128
+ ORDER_HISTORY = "orderHistory",
126
129
  PARTNER = "partner",
127
130
  PARTNERTAG = "partnertag",
128
131
  PROGRAM = "program",
@@ -152,6 +155,8 @@ export declare type SelectAllResponseDataType = {
152
155
  [SelectDataField.END_CUSTOMER]?: EndCustomerType[];
153
156
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
154
157
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
158
+ [SelectDataField.ORDER]?: OrdersType[];
159
+ [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType[];
155
160
  [SelectDataField.PARTNER]?: PartnerType[];
156
161
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
157
162
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
@@ -230,6 +235,8 @@ export declare type SelectOneResponseDataType = {
230
235
  [SelectDataField.END_CUSTOMER]?: EndCustomerType;
231
236
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
232
237
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType;
238
+ [SelectDataField.ORDER]?: OrdersType;
239
+ [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType;
233
240
  [SelectDataField.PARTNER]?: PartnerType;
234
241
  [SelectDataField.PARTNERTAG]?: PartnertagType;
235
242
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType;
@@ -97,6 +97,8 @@ var SelectDataField;
97
97
  SelectDataField["END_CUSTOMER"] = "endCustomer";
98
98
  SelectDataField["LICENSE_BUDGET"] = "licenseBudget";
99
99
  SelectDataField["ORGANIZATION_UNIT"] = "organizationUnit";
100
+ SelectDataField["ORDER"] = "order";
101
+ SelectDataField["ORDER_HISTORY"] = "orderHistory";
100
102
  SelectDataField["PARTNER"] = "partner";
101
103
  SelectDataField["PARTNERTAG"] = "partnertag";
102
104
  SelectDataField["PROGRAM"] = "program";
@@ -7,7 +7,7 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
7
7
  import { ContactsType } from './entities/contact';
8
8
  import { SubscriptionType } from './entities/subscription';
9
9
  import { SpecialPriceRateType } from './entities/specialPriceRate';
10
- import { OrderItemsType, OrdersType } from './entities/order';
10
+ import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, OrderItemsType, OrdersType } from './entities/order';
11
11
  import { GraphqlApiProgramType, ProgramBenefitType, ProgramLevelType, ProgramRequirementType, ProgramLevelOptionGroupType, ProgramLevelOptionType, SubscribedProgramType, SubscriptionExtraFieldType } from './entities/program';
12
12
  import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
13
13
  import { UserHistoryType, UserType } from './entities/user';
@@ -17,6 +17,7 @@ import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
17
17
  import { QuoteVersion } from './entities/quoteVersion';
18
18
  import { Comment } from './entities/comment';
19
19
  import { GraphqlApiReportItemType, GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
20
+ import { GraphqlApiEavType } from './entities/eav';
20
21
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
21
22
  declare type MissingFieldsOfCompanySchema = {
22
23
  contacts?: ContactsSchema;
@@ -42,9 +43,12 @@ declare type MissingFieldsOfEndCustomerSchema = {
42
43
  country?: CountrySchema;
43
44
  };
44
45
  declare type MissingFieldsOfOrderItemSchema = {
46
+ migratedFrom?: GraphqlApiOrderLinkSchema;
47
+ migratedTo?: GraphqlApiOrderLinkSchema;
45
48
  priceRates?: SpecialPriceRateSchema;
46
49
  };
47
50
  declare type MissingFieldsOfOrdersSchema = {
51
+ eavs?: GraphqlApiEavSchema;
48
52
  items?: OrderItemsSchema;
49
53
  };
50
54
  declare type MissingFieldsOfContactSchema = {
@@ -101,6 +105,9 @@ export declare type ContinentSchema = Schema<ContinentType, boolean>;
101
105
  export declare type CountrySchema = Merge<Schema<CountryType, boolean>, MissingFieldsOfCountrySchema>;
102
106
  export declare type CurrencySchema = Schema<CurrencyType, boolean>;
103
107
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
108
+ export declare type GraphqlApiEavSchema = Schema<GraphqlApiEavType, boolean>;
109
+ export declare type GraphqlApiOrderHistorySchema = Schema<GraphqlApiOrderHistoryType, boolean>;
110
+ export declare type GraphqlApiOrderLinkSchema = Schema<GraphqlApiOrderLinkType, boolean>;
104
111
  export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
105
112
  export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
106
113
  export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
@@ -143,6 +150,8 @@ export declare type SelectAllResponseDataSchema = {
143
150
  [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
144
151
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
145
152
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitSchema;
153
+ [SelectDataField.ORDER]?: OrdersSchema;
154
+ [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType;
146
155
  [SelectDataField.PARTNER]?: PartnerSchema;
147
156
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
148
157
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
package/build/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- export * from './axiosSingleton';
2
- export * from './abstractRestfulClient';
3
1
  export * from './abstractEntity';
4
2
  export * from './abstractGraphQLClient';
3
+ export * from './abstractRestfulClient';
4
+ export * from './analytics/';
5
+ export * from './axiosSingleton';
6
+ export * from './billing/';
5
7
  export * from './campaign/';
6
8
  export * from './cart/';
7
9
  export * from './catalog/';
@@ -11,26 +13,25 @@ export * from './exception/';
11
13
  export * from './general/';
12
14
  export * from './getResult';
13
15
  export * from './graphqlApi';
14
- export * from './partialResponse';
15
- export * from './pagination';
16
16
  export * from './licenses/';
17
+ export * from './monitoring/';
17
18
  export * from './notifications/';
19
+ export * from './orderSoftware/';
18
20
  export * from './orders/';
19
21
  export * from './organisationUnit/';
22
+ export * from './pagination';
23
+ export * from './partialResponse';
20
24
  export * from './partner';
21
25
  export * from './publicApiClient';
22
26
  export * from './publicGraphQLClient';
23
27
  export * from './quotes';
24
- export * from './shared/';
28
+ export * from './reports/';
25
29
  export * from './security/';
30
+ export * from './securityScore/';
31
+ export * from './shared/';
26
32
  export * from './subscriptions/';
27
33
  export * from './supportCenter/';
28
- export * from './securityScore/';
29
34
  export * from './user/';
30
- export * from './billing/';
31
- export * from './analytics/';
32
- export * from './reports/';
33
- export * from './orderSoftware/';
34
35
  export { WellArchitected };
35
36
  import * as WellArchitected from './wellArchitected';
36
37
  export { ContactInformation };
package/build/index.js CHANGED
@@ -27,10 +27,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ContactInformation = exports.WellArchitected = void 0;
30
- __exportStar(require("./axiosSingleton"), exports);
31
- __exportStar(require("./abstractRestfulClient"), exports);
32
30
  __exportStar(require("./abstractEntity"), exports);
33
31
  __exportStar(require("./abstractGraphQLClient"), exports);
32
+ __exportStar(require("./abstractRestfulClient"), exports);
33
+ __exportStar(require("./analytics/"), exports);
34
+ __exportStar(require("./axiosSingleton"), exports);
35
+ __exportStar(require("./billing/"), exports);
34
36
  __exportStar(require("./campaign/"), exports);
35
37
  __exportStar(require("./cart/"), exports);
36
38
  __exportStar(require("./catalog/"), exports);
@@ -40,26 +42,25 @@ __exportStar(require("./exception/"), exports);
40
42
  __exportStar(require("./general/"), exports);
41
43
  __exportStar(require("./getResult"), exports);
42
44
  __exportStar(require("./graphqlApi"), exports);
43
- __exportStar(require("./partialResponse"), exports);
44
- __exportStar(require("./pagination"), exports);
45
45
  __exportStar(require("./licenses/"), exports);
46
+ __exportStar(require("./monitoring/"), exports);
46
47
  __exportStar(require("./notifications/"), exports);
48
+ __exportStar(require("./orderSoftware/"), exports);
47
49
  __exportStar(require("./orders/"), exports);
48
50
  __exportStar(require("./organisationUnit/"), exports);
51
+ __exportStar(require("./pagination"), exports);
52
+ __exportStar(require("./partialResponse"), exports);
49
53
  __exportStar(require("./partner"), exports);
50
54
  __exportStar(require("./publicApiClient"), exports);
51
55
  __exportStar(require("./publicGraphQLClient"), exports);
52
56
  __exportStar(require("./quotes"), exports);
53
- __exportStar(require("./shared/"), exports);
57
+ __exportStar(require("./reports/"), exports);
54
58
  __exportStar(require("./security/"), exports);
59
+ __exportStar(require("./securityScore/"), exports);
60
+ __exportStar(require("./shared/"), exports);
55
61
  __exportStar(require("./subscriptions/"), exports);
56
62
  __exportStar(require("./supportCenter/"), exports);
57
- __exportStar(require("./securityScore/"), exports);
58
63
  __exportStar(require("./user/"), exports);
59
- __exportStar(require("./billing/"), exports);
60
- __exportStar(require("./analytics/"), exports);
61
- __exportStar(require("./reports/"), exports);
62
- __exportStar(require("./orderSoftware/"), exports);
63
64
  const WellArchitected = __importStar(require("./wellArchitected"));
64
65
  exports.WellArchitected = WellArchitected;
65
66
  const ContactInformation = __importStar(require("./contact"));
@@ -0,0 +1 @@
1
+ export * from './monitoringClient';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./monitoringClient"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,20 @@
1
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
2
+ export declare type ReportMonitoringType = {
3
+ body: {
4
+ [keys in string]: string | number | null;
5
+ };
6
+ url: string;
7
+ userAgent: string;
8
+ type: string;
9
+ };
10
+ export declare class MonitoringClient extends AbstractRestfulClient {
11
+ /**
12
+ * The base path of the API
13
+ */
14
+ protected basePath: string;
15
+ /**
16
+ * The path of the report endpoint
17
+ */
18
+ private REPORT_PATH;
19
+ sendReport(report: ReportMonitoringType): Promise<void>;
20
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MonitoringClient = void 0;
4
+ const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
+ class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
6
+ constructor() {
7
+ super(...arguments);
8
+ /**
9
+ * The base path of the API
10
+ */
11
+ this.basePath = '/monitoring';
12
+ /**
13
+ * The path of the report endpoint
14
+ */
15
+ this.REPORT_PATH = '/report';
16
+ }
17
+ sendReport(report) {
18
+ this.path = this.REPORT_PATH;
19
+ return this.post(report);
20
+ }
21
+ }
22
+ exports.MonitoringClient = MonitoringClient;
23
+ //# sourceMappingURL=monitoringClient.js.map
@@ -1,5 +1,6 @@
1
1
  export * from './entities/dataListOrders';
2
2
  export * from './entities/orders/order';
3
+ export * from './entities/orders/updateOrderResult';
3
4
  export * from './entities/orders/partner/partner';
4
5
  export * from './entities/orders/products/identifiers/vendor/identifiersVendor';
5
6
  export * from './entities/orders/products/identifiers/productIdentifiers';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities/dataListOrders"), exports);
18
18
  __exportStar(require("./entities/orders/order"), exports);
19
+ __exportStar(require("./entities/orders/updateOrderResult"), exports);
19
20
  __exportStar(require("./entities/orders/partner/partner"), exports);
20
21
  __exportStar(require("./entities/orders/products/identifiers/vendor/identifiersVendor"), exports);
21
22
  __exportStar(require("./entities/orders/products/identifiers/productIdentifiers"), exports);
@@ -129,6 +129,14 @@ export declare type UpdateOrderInputType = {
129
129
  [UpdateOrderInputFields.COLUMN_PO_NUMBER]: string;
130
130
  [UpdateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]: string;
131
131
  };
132
+ export declare enum UpdateContributorOrderInputFields {
133
+ COLUMN_TYPE = "type",
134
+ COLUMN_CONTRIBUTOR_ID = "contributorId"
135
+ }
136
+ export declare type UpdateContributorOrderInputType = {
137
+ [UpdateContributorOrderInputFields.COLUMN_TYPE]: string;
138
+ [UpdateContributorOrderInputFields.COLUMN_CONTRIBUTOR_ID]?: string;
139
+ };
132
140
  export declare class OrdersClient extends AbstractRestfulClient {
133
141
  /**
134
142
  * The base path of the API
@@ -138,4 +146,10 @@ export declare class OrdersClient extends AbstractRestfulClient {
138
146
  getListOrders(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
139
147
  getOrder(orderReference: string, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
140
148
  updateOrder(orderReference: string, payload: UpdateOrderInputType, parameters?: Parameters): Promise<GetResult<UpdateOrderResult>>;
149
+ archiveOrder(orderReference: string, parameters?: Parameters): Promise<void>;
150
+ cancelOrder(orderReference: string, parameters?: Parameters): Promise<void>;
151
+ rejectGradedOrder(orderReference: string, parameters?: Parameters): Promise<void>;
152
+ resubmitOrder(orderReference: string, parameters?: Parameters): Promise<void>;
153
+ validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
154
+ updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
141
155
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrdersClient = exports.UpdateOrderInputFields = exports.scenarioType = exports.CreateOrderInputFields = void 0;
3
+ exports.OrdersClient = exports.UpdateContributorOrderInputFields = exports.UpdateOrderInputFields = exports.scenarioType = exports.CreateOrderInputFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataListOrders_1 = require("./entities/dataListOrders");
@@ -60,6 +60,11 @@ var UpdateOrderInputFields;
60
60
  UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
61
61
  UpdateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "end_customer_PO_number";
62
62
  })(UpdateOrderInputFields = exports.UpdateOrderInputFields || (exports.UpdateOrderInputFields = {}));
63
+ var UpdateContributorOrderInputFields;
64
+ (function (UpdateContributorOrderInputFields) {
65
+ UpdateContributorOrderInputFields["COLUMN_TYPE"] = "type";
66
+ UpdateContributorOrderInputFields["COLUMN_CONTRIBUTOR_ID"] = "contributorId";
67
+ })(UpdateContributorOrderInputFields = exports.UpdateContributorOrderInputFields || (exports.UpdateContributorOrderInputFields = {}));
63
68
  class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
64
69
  constructor() {
65
70
  super(...arguments);
@@ -84,6 +89,30 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
84
89
  this.path = `/${orderReference}`;
85
90
  return new getResult_1.GetResult(updateOrderResult_1.UpdateOrderResult, await this.patch(payload, parameters));
86
91
  }
92
+ async archiveOrder(orderReference, parameters = {}) {
93
+ this.path = `/${orderReference}/archive`;
94
+ await this.patch(undefined, parameters);
95
+ }
96
+ async cancelOrder(orderReference, parameters = {}) {
97
+ this.path = `/${orderReference}/cancel`;
98
+ await this.patch(undefined, parameters);
99
+ }
100
+ async rejectGradedOrder(orderReference, parameters = {}) {
101
+ this.path = `/${orderReference}/rejectGraded`;
102
+ await this.patch(undefined, parameters);
103
+ }
104
+ async resubmitOrder(orderReference, parameters = {}) {
105
+ this.path = `/${orderReference}/resubmit`;
106
+ await this.patch(undefined, parameters);
107
+ }
108
+ async validateOrder(orderReference, parameters = {}) {
109
+ this.path = `/${orderReference}/validate`;
110
+ await this.patch(undefined, parameters);
111
+ }
112
+ async updateStaffContributorsOrder(orderReference, payload, parameters = {}) {
113
+ this.path = `/${orderReference}/contributor`;
114
+ await this.patch(payload, parameters);
115
+ }
87
116
  }
88
117
  exports.OrdersClient = OrdersClient;
89
118
  //# sourceMappingURL=ordersClient.js.map
@@ -21,6 +21,7 @@ import { BillingClient } from './billing';
21
21
  import { AnalyticsClient } from './analytics';
22
22
  import { ReportsClient } from './reports';
23
23
  import { OrderSoftwareClient } from './orderSoftware';
24
+ import { MonitoringClient } from './monitoring';
24
25
  /**
25
26
  * Public API Client class, should be the main entry point for your calls
26
27
  */
@@ -109,5 +110,6 @@ export declare class PublicApiClient extends AbstractRestfulClient {
109
110
  getBillingClient(configuration?: ConfigurationsClient): BillingClient;
110
111
  getAnalyticsClient(configuration?: ConfigurationsClient): AnalyticsClient;
111
112
  getReportsClient(configuration?: ConfigurationsClient): ReportsClient;
113
+ getMonitoringClient(configuration?: ConfigurationsClient): MonitoringClient;
112
114
  }
113
115
  export default PublicApiClient;
@@ -24,6 +24,7 @@ const billing_1 = require("./billing");
24
24
  const analytics_1 = require("./analytics");
25
25
  const reports_1 = require("./reports");
26
26
  const orderSoftware_1 = require("./orderSoftware");
27
+ const monitoring_1 = require("./monitoring");
27
28
  /**
28
29
  * Public API Client class, should be the main entry point for your calls
29
30
  */
@@ -225,6 +226,11 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
225
226
  this.applyConfig(client);
226
227
  return client;
227
228
  }
229
+ getMonitoringClient(configuration) {
230
+ const client = new monitoring_1.MonitoringClient(configuration);
231
+ this.applyConfig(client);
232
+ return client;
233
+ }
228
234
  }
229
235
  exports.PublicApiClient = PublicApiClient;
230
236
  exports.default = PublicApiClient;
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.182.0",
7
+ "version": "3.184.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",