@arrowsphere/api-client 3.203.0 → 3.204.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 +7 -0
- package/build/graphqlApi/types/entities/order.d.ts +26 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +3 -1
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +2 -1
- package/build/orders/ordersClient.d.ts +4 -0
- package/build/orders/ordersClient.js +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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.204.0] - 2025.07.02
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- [graphql-api] add entity `GraphqlApiOrderListType`
|
|
11
|
+
- [order] add endpoint `injectionScenarioOrder` to upload injection file
|
|
12
|
+
|
|
6
13
|
## [3.203.0] - 2025.07.02
|
|
7
14
|
|
|
8
15
|
### Added
|
|
@@ -69,3 +69,29 @@ export declare type GraphqlApiOrderHistoryType = {
|
|
|
69
69
|
order?: OrdersType;
|
|
70
70
|
user?: UserType;
|
|
71
71
|
};
|
|
72
|
+
export declare type GraphqlApiOrderListType = {
|
|
73
|
+
id?: number;
|
|
74
|
+
country?: string;
|
|
75
|
+
createdAt?: string;
|
|
76
|
+
createdBy?: string;
|
|
77
|
+
createdByImpersonate?: string;
|
|
78
|
+
currency?: string;
|
|
79
|
+
customerPo?: string;
|
|
80
|
+
endCustomerName?: string;
|
|
81
|
+
orderType?: string;
|
|
82
|
+
partnerId?: string;
|
|
83
|
+
partnerName?: string;
|
|
84
|
+
partnerPo?: string;
|
|
85
|
+
partnerTags?: string;
|
|
86
|
+
programId?: number;
|
|
87
|
+
programName?: string;
|
|
88
|
+
reference?: string;
|
|
89
|
+
scheduledAt?: string;
|
|
90
|
+
status?: string;
|
|
91
|
+
statusId?: number;
|
|
92
|
+
totalCommitment?: number;
|
|
93
|
+
totalPrice?: number;
|
|
94
|
+
updatedAt?: string;
|
|
95
|
+
uuid?: number;
|
|
96
|
+
vendorName?: string;
|
|
97
|
+
};
|
|
@@ -3,7 +3,7 @@ import { ContactsType } from './entities/contact';
|
|
|
3
3
|
import { GraphqlApiStaffType } from './entities/contributor';
|
|
4
4
|
import { ContinentType, CountryType } from './entities/country';
|
|
5
5
|
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
6
|
-
import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
|
|
6
|
+
import { GraphqlApiOrderHistoryType, GraphqlApiOrderListType, OrdersType } from './entities/order';
|
|
7
7
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
8
8
|
import { PartnertagType } from './entities/partnertag';
|
|
9
9
|
import { GraphqlApiProgramType, ProgramLevelOptionGroupType, ProgramLevelType, SubscribedProgramType } from './entities/program';
|
|
@@ -127,6 +127,7 @@ export declare enum SelectDataField {
|
|
|
127
127
|
ORGANIZATION_UNIT = "organizationUnit",
|
|
128
128
|
ORDER = "order",
|
|
129
129
|
ORDER_HISTORY = "orderHistory",
|
|
130
|
+
ORDER_LIST = "orderList",
|
|
130
131
|
PARTNER = "partner",
|
|
131
132
|
PARTNERTAG = "partnertag",
|
|
132
133
|
PROGRAM = "program",
|
|
@@ -160,6 +161,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
160
161
|
[SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
|
|
161
162
|
[SelectDataField.ORDER]?: OrdersType[];
|
|
162
163
|
[SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType[];
|
|
164
|
+
[SelectDataField.ORDER_LIST]?: GraphqlApiOrderListType[];
|
|
163
165
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
164
166
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
165
167
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
|
|
@@ -99,6 +99,7 @@ var SelectDataField;
|
|
|
99
99
|
SelectDataField["ORGANIZATION_UNIT"] = "organizationUnit";
|
|
100
100
|
SelectDataField["ORDER"] = "order";
|
|
101
101
|
SelectDataField["ORDER_HISTORY"] = "orderHistory";
|
|
102
|
+
SelectDataField["ORDER_LIST"] = "orderList";
|
|
102
103
|
SelectDataField["PARTNER"] = "partner";
|
|
103
104
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
104
105
|
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 { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, OrderItemsType, OrdersType } from './entities/order';
|
|
10
|
+
import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, GraphqlApiOrderListType, 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';
|
|
@@ -109,6 +109,7 @@ export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
|
109
109
|
export declare type GraphqlApiEavSchema = Schema<GraphqlApiEavType, boolean>;
|
|
110
110
|
export declare type GraphqlApiOrderHistorySchema = Schema<GraphqlApiOrderHistoryType, boolean>;
|
|
111
111
|
export declare type GraphqlApiOrderLinkSchema = Schema<GraphqlApiOrderLinkType, boolean>;
|
|
112
|
+
export declare type GraphqlApiOrderListSchema = Schema<GraphqlApiOrderListType, boolean>;
|
|
112
113
|
export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
|
|
113
114
|
export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
|
|
114
115
|
export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
|
|
@@ -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.
|
|
7
|
+
"version": "3.204.0",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -90,4 +90,4 @@
|
|
|
90
90
|
"type-fest": "^2.19.0",
|
|
91
91
|
"validatorjs": "3.22.1"
|
|
92
92
|
}
|
|
93
|
-
}
|
|
93
|
+
}
|