@arrowsphere/api-client 3.178.0-rc.ybo.1 → 3.178.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,14 +3,23 @@
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
- ## [Unreleased]
6
+ ## [3.178.0] - 2025.03.05
7
7
 
8
8
  ### Added
9
- - [licence] add activation expired to licence events
9
+
10
+ - [graphql-api] add field contact to SelectAllResponseDataSchema
11
+ - [graphql-api] add field organizationUnits to PartnerType
12
+ - [graphql-api] add field companies to ContactsType
13
+ - [graphql-api] add fields contacts, endCustomer, endCustomersCount to OrganizationUnitsType
14
+
15
+ ## [3.177.1] - 2025.03.04
16
+
17
+ ### Added
18
+ - [graphql-api] add field quantityCount to GraphqlApiReportType
10
19
 
11
20
  ## [3.177.0] - 2025.02.25
12
21
 
13
- ### Addes
22
+ ### Added
14
23
  - [customers] add endpoint to delete customer
15
24
  - [customers] add endpoint to reconciliate customers
16
25
  - [graphql-api] add fields ordersCount, organizationUnit, reportsCount to EndCustomerType
@@ -12,7 +12,7 @@ export declare type CompanyTypeType = {
12
12
  id?: number;
13
13
  type?: string;
14
14
  };
15
- declare type BaseCompanyType = {
15
+ export declare type BaseCompanyType = {
16
16
  acronym?: string;
17
17
  address1?: string;
18
18
  address2?: string;
@@ -34,6 +34,7 @@ declare type BaseCompanyType = {
34
34
  phone?: string;
35
35
  resellerId?: number;
36
36
  state?: string;
37
+ type?: CompanyTypeType;
37
38
  vatNumber?: string;
38
39
  workgroup?: WorkgroupType;
39
40
  zip?: string;
@@ -63,14 +64,13 @@ export declare type PartnerType = BaseCompanyType & {
63
64
  ordersCount?: CountableType;
64
65
  ordersNeedCount?: CountableType;
65
66
  ordersSaasCount?: CountableType;
67
+ organizationUnits?: OrganizationUnitsType[];
66
68
  reportsCount?: CountableType;
67
69
  subscribedPrograms?: SubscribedProgramType[];
68
70
  subscriptions?: SubscriptionType[];
69
71
  subscriptionsCount?: CountableType;
70
72
  subscriptionsPendingCount?: CountableType;
71
- type?: CompanyTypeType;
72
73
  };
73
74
  export declare type ArrowCompanyType = Omit<BaseCompanyType, 'partnerTags'> & {
74
75
  subscriptions?: SubscriptionType[];
75
76
  };
76
- export {};
@@ -1,8 +1,10 @@
1
+ import { EndCustomerType } from './company';
1
2
  import { OrganizationUnitsType } from './organizationUnit';
2
3
  export declare type ContactsType = {
3
4
  id?: number;
4
5
  active?: boolean;
5
6
  communicationEmail?: string;
7
+ companies?: EndCustomerType[];
6
8
  effectiveDate?: string;
7
9
  email?: string;
8
10
  erpId?: string;
@@ -1,4 +1,10 @@
1
+ import { EndCustomerType } from './company';
2
+ import { ContactsType } from './contact';
1
3
  export declare type OrganizationUnitsType = {
2
4
  id?: number;
5
+ contacts?: ContactsType[];
6
+ endCustomer?: EndCustomerType;
7
+ endCustomersCount?: number;
3
8
  name?: string;
9
+ usersCounts?: number;
4
10
  };
@@ -12,6 +12,7 @@ export declare type GraphqlApiReportType = {
12
12
  subscription?: SubscriptionType;
13
13
  totalAmount?: number;
14
14
  userNote?: string;
15
+ quantityCount?: number;
15
16
  quantitySum?: CountableType;
16
17
  order?: GraphqlApiOrderSoftwareType;
17
18
  status?: GraphqlApiReportStatusType;
@@ -144,6 +144,7 @@ export declare type SelectAllResultType = {
144
144
  };
145
145
  export declare type SelectAllResponseDataType = {
146
146
  [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType[];
147
+ [SelectDataField.CONTACT]?: ContactsType[];
147
148
  [SelectDataField.CONTINENT]?: ContinentType[];
148
149
  [SelectDataField.COUNTRY]?: CountryType[];
149
150
  [SelectDataField.END_CUSTOMER]?: EndCustomerType[];
@@ -220,6 +221,7 @@ export declare type GetSpecialPriceRatesHistoryResultType = {
220
221
  };
221
222
  export declare type SelectOneResponseDataType = {
222
223
  [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType;
224
+ [SelectDataField.CONTACT]?: ContactsType;
223
225
  [SelectDataField.CONTINENT]?: ContinentType;
224
226
  [SelectDataField.COUNTRY]?: CountryType;
225
227
  [SelectDataField.END_CUSTOMER]?: EndCustomerType;
@@ -1,5 +1,5 @@
1
1
  import { Merge, Schema } from 'type-fest';
2
- import { ArrowCompanyType, CompanyExtraInformation, EndCustomerType, PartnerType } from './entities/company';
2
+ import { ArrowCompanyType, BaseCompanyType, CompanyExtraInformation, EndCustomerType, PartnerType } from './entities/company';
3
3
  import { PartnertagType } from './entities/partnertag';
4
4
  import { ContinentType, CountryType } from './entities/country';
5
5
  import { WorkgroupType } from './entities/workgroup';
@@ -23,6 +23,7 @@ declare type MissingFieldsOfCompanySchema = {
23
23
  currency?: CurrencySchema;
24
24
  extraInformations?: CompanyExtraInformationSchema;
25
25
  orders?: OrdersSchema;
26
+ organizationUnits?: OrganizationUnitSchema;
26
27
  partnerTags?: PartnertagSchema;
27
28
  subscribedPrograms?: SubscribedProgramSchema;
28
29
  subscriptions?: SubscriptionSchema;
@@ -47,6 +48,7 @@ declare type MissingFieldsOfOrdersSchema = {
47
48
  items?: OrderItemsSchema;
48
49
  };
49
50
  declare type MissingFieldsOfContactSchema = {
51
+ companies?: BaseCompanySchema;
50
52
  organizationUnits?: OrganizationUnitSchema;
51
53
  };
52
54
  declare type MissingFieldsOfUserSchema = {
@@ -100,6 +102,7 @@ export declare type CountrySchema = Merge<Schema<CountryType, boolean>, MissingF
100
102
  export declare type CurrencySchema = Schema<CurrencyType, boolean>;
101
103
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
102
104
  export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
105
+ export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
103
106
  export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
104
107
  export declare type PageSchema = Schema<PageType, boolean>;
105
108
  export declare type ProgramBenefitSchema = Schema<ProgramBenefitType, boolean>;
@@ -134,6 +137,7 @@ export declare type SelectAllResultSchema = {
134
137
  };
135
138
  export declare type SelectAllResponseDataSchema = {
136
139
  [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
140
+ [SelectDataField.CONTACT]?: ContactsSchema;
137
141
  [SelectDataField.CONTINENT]?: ContinentSchema;
138
142
  [SelectDataField.COUNTRY]?: CountrySchema;
139
143
  [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
@@ -155,24 +159,7 @@ export declare type SelectOneResultSchema = {
155
159
  [SelectableField.DATA]?: SelectOneResponseDataSchema;
156
160
  [SelectableField.ERRORS]?: ErrorsSchema;
157
161
  };
158
- export declare type SelectOneResponseDataSchema = {
159
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
160
- [SelectDataField.CONTINENT]?: ContinentSchema;
161
- [SelectDataField.COUNTRY]?: CountrySchema;
162
- [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
163
- [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
164
- [SelectDataField.PARTNER]?: PartnerSchema;
165
- [SelectDataField.PARTNERTAG]?: PartnertagSchema;
166
- [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
167
- [SelectDataField.QUOTE]?: QuoteSchema;
168
- [SelectDataField.REPORT]?: ReportSchema;
169
- [SelectDataField.REPORT_STATUS]?: ReportStatusSchema;
170
- [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
171
- [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
172
- [SelectDataField.USER]?: UserSchema;
173
- [SelectDataField.USER_HISTORY]?: UserHistorySchema;
174
- [SelectDataField.WORKGROUP]?: WorkgroupSchema;
175
- };
162
+ export declare type SelectOneResponseDataSchema = SelectAllResponseDataSchema;
176
163
  export declare type SelectAllQuerySchema = {
177
164
  [Queries.SELECT_ALL]?: SelectAllResultSchema;
178
165
  };
@@ -39,7 +39,6 @@ export declare enum LicenseEventStatusCode {
39
39
  REJECTED = "85",
40
40
  COMPLETED = "86",
41
41
  SUSPENDED = "87",
42
- ACTIVATION_EXPIRED = "88",
43
42
  CANCELLED = "89",
44
43
  TRANSFERRED = "126"
45
44
  }
@@ -45,7 +45,6 @@ var LicenseEventStatusCode;
45
45
  LicenseEventStatusCode["REJECTED"] = "85";
46
46
  LicenseEventStatusCode["COMPLETED"] = "86";
47
47
  LicenseEventStatusCode["SUSPENDED"] = "87";
48
- LicenseEventStatusCode["ACTIVATION_EXPIRED"] = "88";
49
48
  LicenseEventStatusCode["CANCELLED"] = "89";
50
49
  LicenseEventStatusCode["TRANSFERRED"] = "126";
51
50
  })(LicenseEventStatusCode = exports.LicenseEventStatusCode || (exports.LicenseEventStatusCode = {}));
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.178.0-rc.ybo.1",
7
+ "version": "3.178.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",
@@ -31,7 +31,6 @@
31
31
  "author": "ArrowSphere <support@arrowsphereconnect.com>",
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@types/validatorjs": "3.15.0",
35
34
  "@types/chai": "4.2.15",
36
35
  "@types/chai-as-promised": "7.1.3",
37
36
  "@types/lodash": "^4.14.191",
@@ -82,6 +81,7 @@
82
81
  "test": "tests"
83
82
  },
84
83
  "dependencies": {
84
+ "@types/validatorjs": "3.15.0",
85
85
  "axios": "1.1.3",
86
86
  "graphql": "^16.3.0",
87
87
  "graphql-request": "4.2.0",