@arrowsphere/api-client 3.428.0 → 3.430.0
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.
- package/CHANGELOG.md +14 -0
- package/build/graphqlApi/index.d.ts +1 -0
- package/build/graphqlApi/index.js +1 -0
- package/build/graphqlApi/types/entities/company.d.ts +1 -0
- package/build/graphqlApi/types/entities/contact.d.ts +2 -8
- package/build/graphqlApi/types/entities/securityRole.d.ts +6 -0
- package/build/graphqlApi/types/entities/securityRole.js +3 -0
- package/build/graphqlApi/types/entities/user.d.ts +5 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +4 -0
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +5 -0
- package/build/orders/ordersClient.d.ts +8 -0
- package/build/orders/ordersClient.js +9 -1
- package/build/orders/types/orderStatus.d.ts +5 -1
- package/build/orders/types/orderStatus.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.430.0] - 2026.11.20
|
|
7
|
+
### Added
|
|
8
|
+
- [Orders] Add `updateStatusOrder` (`PATCH /orders/{orderReference}/status`) to set any status on an order
|
|
9
|
+
- [Orders] Add the missing `Migration cancel failed`, `Validated`, `Sent to end customer` and `Draft` values to `OrderStatusEnum`
|
|
10
|
+
|
|
11
|
+
## [3.429.0] - 2026.11.20
|
|
12
|
+
### Added
|
|
13
|
+
- [graphqlApi] Add `lastLoginAt`, `locked`, `canBeDeleted` and `role` to `UserType`, and the `SecurityRole` entity (`SecurityRoleType`, `SecurityRoleSchema`, `SelectDataField.SECURITY_ROLE`)
|
|
14
|
+
- [graphqlApi] Allow selecting `company` (common company fields) in `ContactsSchema`
|
|
15
|
+
- [graphqlApi] Add `typeName` (`Partner`, `EndCustomer` or `ArrowCompany`) to companies
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- [graphqlApi] `ContactsType.company` is now a `BaseCompanyType`: graphql-api no longer exposes `__typename` on the contact company, use `typeName` instead
|
|
19
|
+
|
|
6
20
|
## [3.428.0] - 2026.11.20
|
|
7
21
|
### Added
|
|
8
22
|
- [graphql-api] Add `erpSku` to quote `ItemData`
|
|
@@ -14,6 +14,7 @@ export * from './types/entities/partnertag';
|
|
|
14
14
|
export * from './types/entities/program';
|
|
15
15
|
export * from './types/entities/quote';
|
|
16
16
|
export * from './types/entities/report';
|
|
17
|
+
export * from './types/entities/securityRole';
|
|
17
18
|
export * from './types/entities/subscription';
|
|
18
19
|
export * from './types/entities/specialPriceRate';
|
|
19
20
|
export * from './types/entities/unit';
|
|
@@ -30,6 +30,7 @@ __exportStar(require("./types/entities/partnertag"), exports);
|
|
|
30
30
|
__exportStar(require("./types/entities/program"), exports);
|
|
31
31
|
__exportStar(require("./types/entities/quote"), exports);
|
|
32
32
|
__exportStar(require("./types/entities/report"), exports);
|
|
33
|
+
__exportStar(require("./types/entities/securityRole"), exports);
|
|
33
34
|
__exportStar(require("./types/entities/subscription"), exports);
|
|
34
35
|
__exportStar(require("./types/entities/specialPriceRate"), exports);
|
|
35
36
|
__exportStar(require("./types/entities/unit"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCompanyType, EndCustomerType } from './company';
|
|
2
2
|
import { OrganizationUnitsType } from './organizationUnit';
|
|
3
3
|
import { UserType } from './user';
|
|
4
4
|
export declare type ContactsType = {
|
|
@@ -6,13 +6,7 @@ export declare type ContactsType = {
|
|
|
6
6
|
active?: boolean;
|
|
7
7
|
communicationEmail?: string;
|
|
8
8
|
companies?: EndCustomerType[];
|
|
9
|
-
company?:
|
|
10
|
-
__typename: 'EndCustomer';
|
|
11
|
-
}) | (PartnerType & {
|
|
12
|
-
__typename: 'Partner';
|
|
13
|
-
}) | (ArrowCompanyType & {
|
|
14
|
-
__typename: 'ArrowCompany';
|
|
15
|
-
});
|
|
9
|
+
company?: BaseCompanyType;
|
|
16
10
|
effectiveDate?: string;
|
|
17
11
|
email?: string;
|
|
18
12
|
erpId?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContactsType } from './contact';
|
|
2
2
|
import { PartnertagType } from './partnertag';
|
|
3
|
+
import { SecurityRoleType } from './securityRole';
|
|
3
4
|
export declare type UserType = {
|
|
4
5
|
id?: number;
|
|
5
6
|
allowDirectLogin?: boolean;
|
|
@@ -7,6 +8,10 @@ export declare type UserType = {
|
|
|
7
8
|
login?: string;
|
|
8
9
|
userTags?: PartnertagType[];
|
|
9
10
|
validatedAt?: string;
|
|
11
|
+
lastLoginAt?: string;
|
|
12
|
+
locked?: boolean;
|
|
13
|
+
canBeDeleted?: boolean;
|
|
14
|
+
role?: SecurityRoleType;
|
|
10
15
|
};
|
|
11
16
|
export declare type UserHistoryType = {
|
|
12
17
|
id?: number;
|
|
@@ -11,6 +11,7 @@ import { QuoteType } from './entities/quote';
|
|
|
11
11
|
import { GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
|
|
12
12
|
import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
13
13
|
import { SubscriptionType } from './entities/subscription';
|
|
14
|
+
import { SecurityRoleType } from './entities/securityRole';
|
|
14
15
|
import { UserHistoryType, UserType } from './entities/user';
|
|
15
16
|
import { WorkgroupType } from './entities/workgroup';
|
|
16
17
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
@@ -148,6 +149,7 @@ export declare enum SelectDataField {
|
|
|
148
149
|
QUOTE = "quote",
|
|
149
150
|
REPORT = "report",
|
|
150
151
|
REPORT_STATUS = "reportStatus",
|
|
152
|
+
SECURITY_ROLE = "securityRole",
|
|
151
153
|
SPECIAL_PRICE_RATE = "specialPriceRate",
|
|
152
154
|
STAFF = "staff",
|
|
153
155
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
@@ -196,6 +198,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
196
198
|
[SelectDataField.QUOTE]?: QuoteType[];
|
|
197
199
|
[SelectDataField.REPORT]?: GraphqlApiReportType[];
|
|
198
200
|
[SelectDataField.REPORT_STATUS]?: GraphqlApiReportStatusType[];
|
|
201
|
+
[SelectDataField.SECURITY_ROLE]?: SecurityRoleType[];
|
|
199
202
|
[SelectDataField.STAFF]?: GraphqlApiStaffType[];
|
|
200
203
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
|
|
201
204
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
|
|
@@ -286,6 +289,7 @@ export declare type SelectOneResponseDataType = {
|
|
|
286
289
|
[SelectDataField.QUOTE]?: QuoteType;
|
|
287
290
|
[SelectDataField.REPORT]?: GraphqlApiReportType;
|
|
288
291
|
[SelectDataField.REPORT_STATUS]?: GraphqlApiReportStatusType;
|
|
292
|
+
[SelectDataField.SECURITY_ROLE]?: SecurityRoleType;
|
|
289
293
|
[SelectDataField.STAFF]?: GraphqlApiStaffType;
|
|
290
294
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
|
|
291
295
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType;
|
|
@@ -114,6 +114,7 @@ var SelectDataField;
|
|
|
114
114
|
SelectDataField["QUOTE"] = "quote";
|
|
115
115
|
SelectDataField["REPORT"] = "report";
|
|
116
116
|
SelectDataField["REPORT_STATUS"] = "reportStatus";
|
|
117
|
+
SelectDataField["SECURITY_ROLE"] = "securityRole";
|
|
117
118
|
SelectDataField["SPECIAL_PRICE_RATE"] = "specialPriceRate";
|
|
118
119
|
SelectDataField["STAFF"] = "staff";
|
|
119
120
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
@@ -10,6 +10,7 @@ import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
|
10
10
|
import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, GraphqlApiOrderListType, GraphqlApiOrderSoftwareHistoryType, GraphqlApiOrderSoftwareType, GraphqlApiOrderSoftwareStatusType, 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
|
+
import { SecurityRoleType } from './entities/securityRole';
|
|
13
14
|
import { UserHistoryType, UserType } from './entities/user';
|
|
14
15
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
15
16
|
import { CurrencyType } from './entities/currency';
|
|
@@ -64,10 +65,12 @@ declare type MissingFieldsOfOrdersSchema = {
|
|
|
64
65
|
};
|
|
65
66
|
declare type MissingFieldsOfContactSchema = {
|
|
66
67
|
companies?: BaseCompanySchema;
|
|
68
|
+
company?: BaseCompanySchema;
|
|
67
69
|
organizationUnits?: OrganizationUnitSchema;
|
|
68
70
|
};
|
|
69
71
|
declare type MissingFieldsOfUserSchema = {
|
|
70
72
|
contact?: ContactsSchema;
|
|
73
|
+
role?: SecurityRoleSchema;
|
|
71
74
|
userTags?: PartnertagSchema;
|
|
72
75
|
};
|
|
73
76
|
declare type MissingFieldsOfLicenseBudgetSchema = {
|
|
@@ -103,6 +106,7 @@ declare type MissingFieldsOfItemDataSchema = {
|
|
|
103
106
|
export declare type ItemDataSchema = Merge<Schema<ItemData, boolean>, MissingFieldsOfItemDataSchema>;
|
|
104
107
|
export declare type QuoteSchema = Merge<Schema<QuoteType, boolean>, MissingFieldsOfQuoteSchema>;
|
|
105
108
|
export declare type ContactsSchema = Merge<Schema<ContactsType, boolean>, MissingFieldsOfContactSchema>;
|
|
109
|
+
export declare type SecurityRoleSchema = Schema<SecurityRoleType, boolean>;
|
|
106
110
|
export declare type UserSchema = Merge<Schema<UserType, boolean>, MissingFieldsOfUserSchema>;
|
|
107
111
|
export declare type LicenseBudgetSchema = Merge<Schema<LicenseBudgetType, boolean>, MissingFieldsOfLicenseBudgetSchema>;
|
|
108
112
|
export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
|
|
@@ -218,6 +222,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
218
222
|
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
219
223
|
[SelectDataField.REPORT]?: ReportSchema;
|
|
220
224
|
[SelectDataField.REPORT_STATUS]?: ReportStatusSchema;
|
|
225
|
+
[SelectDataField.SECURITY_ROLE]?: SecurityRoleSchema;
|
|
221
226
|
[SelectDataField.STAFF]?: GraphqlApiStaffSchema;
|
|
222
227
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
223
228
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
@@ -4,6 +4,7 @@ import { DataListOrders } from './entities/dataListOrders';
|
|
|
4
4
|
import { ReferenceLink } from './entities/referenceLink';
|
|
5
5
|
import { UpdateOrderResult } from './entities/orders/updateOrderResult';
|
|
6
6
|
import { AttachmentOrder, AttachmentsListOrder } from './entities/orders/attachment';
|
|
7
|
+
import { OrderStatusEnum } from './types/orderStatus';
|
|
7
8
|
import { CommentOrder } from './entities/orders/comment';
|
|
8
9
|
import { DataListOrderComments } from './entities/dataListOrderComments';
|
|
9
10
|
export declare enum CreateOrderCommentInputFields {
|
|
@@ -204,6 +205,12 @@ export declare type UploadAttachmentOrderInputType = {
|
|
|
204
205
|
export declare type InjectionScenarioOrderInputType = {
|
|
205
206
|
[UploadAttachmentOrderInputFields.COLUMN_FILE_ENCODED]: string;
|
|
206
207
|
};
|
|
208
|
+
export declare enum UpdateStatusOrderInputFields {
|
|
209
|
+
COLUMN_STATUS = "status"
|
|
210
|
+
}
|
|
211
|
+
export declare type UpdateStatusOrderInputType = {
|
|
212
|
+
[UpdateStatusOrderInputFields.COLUMN_STATUS]: OrderStatusEnum;
|
|
213
|
+
};
|
|
207
214
|
export declare class OrdersClient extends AbstractRestfulClient {
|
|
208
215
|
/**
|
|
209
216
|
* The base path of the API
|
|
@@ -218,6 +225,7 @@ export declare class OrdersClient extends AbstractRestfulClient {
|
|
|
218
225
|
rejectGradedOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
219
226
|
resubmitOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
220
227
|
validateOrder(orderReference: string, parameters?: Parameters): Promise<void>;
|
|
228
|
+
updateStatusOrder(orderReference: string, payload: UpdateStatusOrderInputType, parameters?: Parameters): Promise<void>;
|
|
221
229
|
updateStaffContributorsOrder(orderReference: string, payload: UpdateContributorOrderInputType, parameters?: Parameters): Promise<void>;
|
|
222
230
|
updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType, parameters?: Parameters): Promise<void>;
|
|
223
231
|
getAttachmentsOrder(orderReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsListOrder>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersClient = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderCustomFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = exports.CreateOrderCommentInputFields = void 0;
|
|
3
|
+
exports.OrdersClient = exports.UpdateStatusOrderInputFields = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderCustomFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = exports.CreateOrderCommentInputFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataListOrders_1 = require("./entities/dataListOrders");
|
|
@@ -108,6 +108,10 @@ var UploadAttachmentOrderInputFields;
|
|
|
108
108
|
UploadAttachmentOrderInputFields["COLUMN_NAME"] = "name";
|
|
109
109
|
UploadAttachmentOrderInputFields["COLUMN_FILE_ENCODED"] = "fileEncoded";
|
|
110
110
|
})(UploadAttachmentOrderInputFields = exports.UploadAttachmentOrderInputFields || (exports.UploadAttachmentOrderInputFields = {}));
|
|
111
|
+
var UpdateStatusOrderInputFields;
|
|
112
|
+
(function (UpdateStatusOrderInputFields) {
|
|
113
|
+
UpdateStatusOrderInputFields["COLUMN_STATUS"] = "status";
|
|
114
|
+
})(UpdateStatusOrderInputFields = exports.UpdateStatusOrderInputFields || (exports.UpdateStatusOrderInputFields = {}));
|
|
111
115
|
class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
112
116
|
constructor() {
|
|
113
117
|
super(...arguments);
|
|
@@ -152,6 +156,10 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
152
156
|
this.path = `/${orderReference}/validate`;
|
|
153
157
|
await this.patch(undefined, parameters);
|
|
154
158
|
}
|
|
159
|
+
async updateStatusOrder(orderReference, payload, parameters = {}) {
|
|
160
|
+
this.path = `/${orderReference}/status`;
|
|
161
|
+
await this.patch(payload, parameters);
|
|
162
|
+
}
|
|
155
163
|
async updateStaffContributorsOrder(orderReference, payload, parameters = {}) {
|
|
156
164
|
this.path = `/${orderReference}/contributor`;
|
|
157
165
|
await this.patch(payload, parameters);
|
|
@@ -8,6 +8,7 @@ export declare enum OrderStatusEnum {
|
|
|
8
8
|
INTERNAL_WARNING = "Internal Warning",
|
|
9
9
|
MIGRATION_CANCELED = "Migration canceled",
|
|
10
10
|
MIGRATION_CANCEL_IN_PROGRESS = "Migration cancel in progress",
|
|
11
|
+
MIGRATION_CANCEL_FAILED = "Migration cancel failed",
|
|
11
12
|
MIGRATION_FAILED = "Migration failed",
|
|
12
13
|
NEED_VALIDATION = "Needs Validation",
|
|
13
14
|
NEED_PARTNER_VALIDATION = "Needs Partner Validation",
|
|
@@ -23,8 +24,11 @@ export declare enum OrderStatusEnum {
|
|
|
23
24
|
ORDER_VALIDATED = "Order Validated",
|
|
24
25
|
SCHEDULED_ORDER = "Scheduled Order",
|
|
25
26
|
CANCELED = "Canceled",
|
|
27
|
+
VALIDATED = "Validated",
|
|
26
28
|
PENDING_FINANCE_VALIDATION = "Pending Finance validation",
|
|
27
29
|
VALIDATED_BY_PARTNER = "Validated by partner",
|
|
28
30
|
VALIDATED_BY_COUNTRY_ADMIN = "Validated by country admin",
|
|
29
|
-
VALIDATED_BY_ARROW_FINANCE = "Validated by arrow finance"
|
|
31
|
+
VALIDATED_BY_ARROW_FINANCE = "Validated by arrow finance",
|
|
32
|
+
SENT_TO_END_CUSTOMER = "Sent to end customer",
|
|
33
|
+
DRAFT = "Draft"
|
|
30
34
|
}
|
|
@@ -12,6 +12,7 @@ var OrderStatusEnum;
|
|
|
12
12
|
OrderStatusEnum["INTERNAL_WARNING"] = "Internal Warning";
|
|
13
13
|
OrderStatusEnum["MIGRATION_CANCELED"] = "Migration canceled";
|
|
14
14
|
OrderStatusEnum["MIGRATION_CANCEL_IN_PROGRESS"] = "Migration cancel in progress";
|
|
15
|
+
OrderStatusEnum["MIGRATION_CANCEL_FAILED"] = "Migration cancel failed";
|
|
15
16
|
OrderStatusEnum["MIGRATION_FAILED"] = "Migration failed";
|
|
16
17
|
OrderStatusEnum["NEED_VALIDATION"] = "Needs Validation";
|
|
17
18
|
OrderStatusEnum["NEED_PARTNER_VALIDATION"] = "Needs Partner Validation";
|
|
@@ -27,9 +28,12 @@ var OrderStatusEnum;
|
|
|
27
28
|
OrderStatusEnum["ORDER_VALIDATED"] = "Order Validated";
|
|
28
29
|
OrderStatusEnum["SCHEDULED_ORDER"] = "Scheduled Order";
|
|
29
30
|
OrderStatusEnum["CANCELED"] = "Canceled";
|
|
31
|
+
OrderStatusEnum["VALIDATED"] = "Validated";
|
|
30
32
|
OrderStatusEnum["PENDING_FINANCE_VALIDATION"] = "Pending Finance validation";
|
|
31
33
|
OrderStatusEnum["VALIDATED_BY_PARTNER"] = "Validated by partner";
|
|
32
34
|
OrderStatusEnum["VALIDATED_BY_COUNTRY_ADMIN"] = "Validated by country admin";
|
|
33
35
|
OrderStatusEnum["VALIDATED_BY_ARROW_FINANCE"] = "Validated by arrow finance";
|
|
36
|
+
OrderStatusEnum["SENT_TO_END_CUSTOMER"] = "Sent to end customer";
|
|
37
|
+
OrderStatusEnum["DRAFT"] = "Draft";
|
|
34
38
|
})(OrderStatusEnum = exports.OrderStatusEnum || (exports.OrderStatusEnum = {}));
|
|
35
39
|
//# sourceMappingURL=orderStatus.js.map
|
package/package.json
CHANGED