@arrowsphere/api-client 3.186.0-rc-bdj-5 → 3.186.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 CHANGED
@@ -3,6 +3,18 @@
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.186.0] - 2025.04.15
7
+
8
+ ### Added
9
+ - [graphql-api] add endpoint `getAttachmentsOrder` to get order attachments list
10
+ - [graphql-api] add endpoint `deleteAttachmentOrder` to delete one order attachment
11
+ - [graphql-api] add endpoint `uploadAttachmentOrder` to add new attachment to an order
12
+
13
+ ## [3.185.0] - 2025.04.11
14
+
15
+ ### Added
16
+ - [programs] add programLevel endpoint
17
+
6
18
  ## [3.184.0] - 2025.04.01
7
19
 
8
20
  ### Added
@@ -50,6 +50,7 @@ export declare type ProgramLevelOptionType = {
50
50
  };
51
51
  export declare type ProgramLevelType = {
52
52
  internalName?: string;
53
+ level?: number;
53
54
  name?: string;
54
55
  benefits?: ProgramBenefitType[];
55
56
  requirements?: ProgramRequirementType[];
@@ -6,7 +6,7 @@ import { LicenseBudgetType } from './entities/licenseBudget';
6
6
  import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
7
7
  import { OrganizationUnitsType } from './entities/organizationUnit';
8
8
  import { PartnertagType } from './entities/partnertag';
9
- import { GraphqlApiProgramType, ProgramLevelOptionGroupType, SubscribedProgramType } from './entities/program';
9
+ import { GraphqlApiProgramType, ProgramLevelOptionGroupType, ProgramLevelType, SubscribedProgramType } from './entities/program';
10
10
  import { QuoteType } from './entities/quote';
11
11
  import { GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
12
12
  import { SpecialPriceRateType } from './entities/specialPriceRate';
@@ -130,6 +130,7 @@ export declare enum SelectDataField {
130
130
  PARTNER = "partner",
131
131
  PARTNERTAG = "partnertag",
132
132
  PROGRAM = "program",
133
+ PROGRAM_LEVEL = "programLevel",
133
134
  PROGRAM_LEVEL_OPTION_GROUP = "programLevelOptionGroup",
134
135
  QUOTE = "quote",
135
136
  REPORT = "report",
@@ -162,6 +163,7 @@ export declare type SelectAllResponseDataType = {
162
163
  [SelectDataField.PARTNER]?: PartnerType[];
163
164
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
164
165
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
166
+ [SelectDataField.PROGRAM_LEVEL]?: ProgramLevelType[];
165
167
  [SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupType[];
166
168
  [SelectDataField.QUOTE]?: QuoteType[];
167
169
  [SelectDataField.REPORT]?: GraphqlApiReportType[];
@@ -243,6 +245,7 @@ export declare type SelectOneResponseDataType = {
243
245
  [SelectDataField.PARTNER]?: PartnerType;
244
246
  [SelectDataField.PARTNERTAG]?: PartnertagType;
245
247
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType;
248
+ [SelectDataField.PROGRAM_LEVEL]?: ProgramLevelType;
246
249
  [SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupType;
247
250
  [SelectDataField.QUOTE]?: QuoteType;
248
251
  [SelectDataField.REPORT]?: GraphqlApiReportType;
@@ -102,6 +102,7 @@ var SelectDataField;
102
102
  SelectDataField["PARTNER"] = "partner";
103
103
  SelectDataField["PARTNERTAG"] = "partnertag";
104
104
  SelectDataField["PROGRAM"] = "program";
105
+ SelectDataField["PROGRAM_LEVEL"] = "programLevel";
105
106
  SelectDataField["PROGRAM_LEVEL_OPTION_GROUP"] = "programLevelOptionGroup";
106
107
  SelectDataField["QUOTE"] = "quote";
107
108
  SelectDataField["REPORT"] = "report";
@@ -116,19 +116,19 @@ export declare type PageSchema = Schema<PageType, boolean>;
116
116
  export declare type ProgramBenefitSchema = Schema<ProgramBenefitType, boolean>;
117
117
  export declare type ProgramLevelOptionSchema = Schema<ProgramLevelOptionType, boolean>;
118
118
  export declare type ProgramRequirementSchema = Schema<ProgramRequirementType, boolean>;
119
- export declare type ProgramLevelSchema = Schema<ProgramLevelType, boolean>;
120
- declare type MissingFieldsOfProgramLevelOptionGroupSchema = {
121
- programLevelOptions?: ProgramLevelOptionSchema;
122
- };
123
- export declare type ProgramLevelOptionGroupSchema = Merge<Schema<ProgramLevelOptionGroupType, boolean>, MissingFieldsOfProgramLevelOptionGroupSchema>;
124
- export declare type SubscriptionExtraFieldSchema = Schema<SubscriptionExtraFieldType, boolean>;
119
+ export declare type ProgramLevelSchema = Merge<Schema<ProgramLevelType, boolean>, MissingFieldsOfLevelSchema>;
125
120
  export declare type MissingFieldsOfLevelSchema = {
126
121
  benefits?: ProgramBenefitSchema;
127
122
  programLevelOptionGroups?: ProgramLevelOptionGroupSchema;
128
123
  requirements?: ProgramRequirementSchema;
129
124
  };
125
+ declare type MissingFieldsOfProgramLevelOptionGroupSchema = {
126
+ programLevelOptions?: ProgramLevelOptionSchema;
127
+ };
128
+ export declare type ProgramLevelOptionGroupSchema = Merge<Schema<ProgramLevelOptionGroupType, boolean>, MissingFieldsOfProgramLevelOptionGroupSchema>;
129
+ export declare type SubscriptionExtraFieldSchema = Schema<SubscriptionExtraFieldType, boolean>;
130
130
  export declare type MissingFieldsOfProgramSchema = {
131
- levels?: Merge<Schema<ProgramLevelSchema, boolean>, MissingFieldsOfLevelSchema>;
131
+ levels?: ProgramLevelSchema;
132
132
  subscriptionExtraFields?: SubscriptionExtraFieldSchema;
133
133
  };
134
134
  export declare type GraphqlApiProgramSchema = Merge<Schema<GraphqlApiProgramType, boolean>, MissingFieldsOfProgramSchema>;
@@ -161,6 +161,7 @@ export declare type SelectAllResponseDataSchema = {
161
161
  [SelectDataField.PARTNER]?: PartnerSchema;
162
162
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
163
163
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
164
+ [SelectDataField.PROGRAM_LEVEL]?: ProgramLevelSchema;
164
165
  [SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupSchema;
165
166
  [SelectDataField.QUOTE]?: QuoteSchema;
166
167
  [SelectDataField.REPORT]?: ReportSchema;
@@ -3,7 +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
+ import { AttachmentOrder, AttachmentsListOrder } from './entities/orders/attachment';
7
7
  export declare enum CreateOrderInputFields {
8
8
  COLUMN_CUSTOMER = "customer",
9
9
  COLUMN_REFERENCE = "reference",
@@ -191,5 +191,5 @@ export declare class OrdersClient extends AbstractRestfulClient {
191
191
  updateAdditionalInformationOrder(orderReference: string, payload: UpdateAdditionalInformationOrderInputType, parameters?: Parameters): Promise<void>;
192
192
  getAttachmentsOrder(orderReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<AttachmentsListOrder>>;
193
193
  deleteAttachmentOrder(orderReference: string, name: string, parameters?: Parameters): Promise<void>;
194
- uploadAttachmentOrder(orderReference: string, payload: UploadAttachmentOrderInputType, parameters?: Parameters): Promise<void>;
194
+ uploadAttachmentOrder(orderReference: string, payload: UploadAttachmentOrderInputType, parameters?: Parameters): Promise<GetResult<AttachmentOrder>>;
195
195
  }
@@ -160,7 +160,7 @@ class OrdersClient extends abstractRestfulClient_1.AbstractRestfulClient {
160
160
  }
161
161
  async uploadAttachmentOrder(orderReference, payload, parameters = {}) {
162
162
  this.path = `/${orderReference}/attachment`;
163
- await this.post(payload, parameters);
163
+ return new getResult_1.GetResult(attachment_1.AttachmentOrder, await this.post(payload, parameters));
164
164
  }
165
165
  }
166
166
  exports.OrdersClient = OrdersClient;
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-5",
7
+ "version": "3.186.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
+ }