@arrowsphere/api-client 3.88.0 → 3.90.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
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.89.0] - 2024.01.11
7
+
8
+ ### Added
9
+ - [Organization Unit] add countLicenses fields to get List organization unit
10
+
6
11
  ## [3.88.0] - 2024.01.08
7
12
 
8
13
  ### Added
@@ -7,5 +7,6 @@ export * from './types/entities/order';
7
7
  export * from './types/entities/partnertag';
8
8
  export * from './types/entities/subscription';
9
9
  export * from './types/entities/specialPriceRate';
10
+ export * from './types/entities/vendor';
10
11
  export * from './types/entities/workgroup';
11
12
  export * from './graphqlApiClient';
@@ -23,6 +23,7 @@ __exportStar(require("./types/entities/order"), exports);
23
23
  __exportStar(require("./types/entities/partnertag"), exports);
24
24
  __exportStar(require("./types/entities/subscription"), exports);
25
25
  __exportStar(require("./types/entities/specialPriceRate"), exports);
26
+ __exportStar(require("./types/entities/vendor"), exports);
26
27
  __exportStar(require("./types/entities/workgroup"), exports);
27
28
  __exportStar(require("./graphqlApiClient"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,7 @@ import { ContactsType } from './contact';
2
2
  import { CountryType } from './country';
3
3
  import { OrdersType } from './order';
4
4
  import { PartnertagType } from './partnertag';
5
+ import { SubscribedProgramType } from './program';
5
6
  import { SubscriptionType } from './subscription';
6
7
  import { WorkgroupType } from './workgroup';
7
8
  export declare type CompanyTypeType = {
@@ -58,6 +59,7 @@ export declare type PartnerType = BaseCompanyType & {
58
59
  ordersCount?: CountableType;
59
60
  ordersNeedCount?: CountableType;
60
61
  reportsCount?: CountableType;
62
+ subscribedPrograms?: SubscribedProgramType[];
61
63
  subscriptions?: SubscriptionType[];
62
64
  subscriptionsCount?: CountableType;
63
65
  subscriptionsPendingCount?: CountableType;
@@ -1,5 +1,23 @@
1
+ import { PartnerType } from './company';
2
+ import { SubscriptionType } from './subscription';
3
+ import { VendorsType } from './vendor';
1
4
  export declare type ProgramType = {
2
5
  id?: number;
3
6
  internalName?: string;
4
7
  name?: string;
8
+ vendor?: VendorsType;
9
+ };
10
+ export declare type SubscribedProgramType = {
11
+ id?: number;
12
+ availabilityEndedAt?: string;
13
+ availabilityStartedAt?: string;
14
+ companyId?: number;
15
+ internalName?: string;
16
+ subscriptionEndedAt?: string;
17
+ partner?: PartnerType;
18
+ program?: ProgramType;
19
+ subscription?: SubscriptionType;
20
+ vendor?: VendorsType;
21
+ vendorCode?: string;
22
+ vendorName?: string;
5
23
  };
@@ -0,0 +1,10 @@
1
+ export declare type VendorsType = {
2
+ id?: number;
3
+ identifier?: string;
4
+ licenseUrl?: string;
5
+ logoLarge?: string;
6
+ logoSmall?: string;
7
+ logoStandard?: string;
8
+ name?: string;
9
+ url?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=vendor.js.map
@@ -1,7 +1,9 @@
1
1
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
2
2
  import { ContinentType, CountryType } from './entities/country';
3
3
  import { PartnertagType } from './entities/partnertag';
4
+ import { SubscribedProgramType } from './entities/program';
4
5
  import { SubscriptionType } from './entities/subscription';
6
+ import { VendorsType } from './entities/vendor';
5
7
  import { WorkgroupType } from './entities/workgroup';
6
8
  import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema } from './graphqlApiSchemas';
7
9
  /**
@@ -114,7 +116,9 @@ export declare enum SelectDataField {
114
116
  END_CUSTOMER = "endCustomer",
115
117
  PARTNER = "partner",
116
118
  PARTNERTAG = "partnertag",
119
+ SUBSCRIBED_PROGRAM = "subscribedProgram",
117
120
  SUBSCRIPTION = "subscription",
121
+ VENDOR = "vendor",
118
122
  WORKGROUP = "workgroup"
119
123
  }
120
124
  export declare type SelectAllResultType = {
@@ -131,7 +135,9 @@ export declare type SelectAllResponseDataType = {
131
135
  [SelectDataField.END_CUSTOMER]?: EndCustomerType[];
132
136
  [SelectDataField.PARTNER]?: PartnerType[];
133
137
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
138
+ [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
134
139
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
140
+ [SelectDataField.VENDOR]?: VendorsType[];
135
141
  [SelectDataField.WORKGROUP]?: WorkgroupType[];
136
142
  };
137
143
  export declare enum ErrorsField {
@@ -174,7 +180,9 @@ export declare type SelectOneResponseDataType = {
174
180
  [SelectDataField.END_CUSTOMER]?: EndCustomerType;
175
181
  [SelectDataField.PARTNER]?: PartnerType;
176
182
  [SelectDataField.PARTNERTAG]?: PartnertagType;
183
+ [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
177
184
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType;
185
+ [SelectDataField.VENDOR]?: VendorsType;
178
186
  [SelectDataField.WORKGROUP]?: WorkgroupType;
179
187
  };
180
188
  export declare enum QueryVariablesField {
@@ -96,7 +96,9 @@ var SelectDataField;
96
96
  SelectDataField["END_CUSTOMER"] = "endCustomer";
97
97
  SelectDataField["PARTNER"] = "partner";
98
98
  SelectDataField["PARTNERTAG"] = "partnertag";
99
+ SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
99
100
  SelectDataField["SUBSCRIPTION"] = "subscription";
101
+ SelectDataField["VENDOR"] = "vendor";
100
102
  SelectDataField["WORKGROUP"] = "workgroup";
101
103
  })(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
102
104
  var ErrorsField;
@@ -9,12 +9,15 @@ import { ProgramType } from '../../catalog';
9
9
  import { SubscriptionType } from './entities/subscription';
10
10
  import { SpecialPriceRateType } from './entities/specialPriceRate';
11
11
  import { OrderItemsType, OrdersType } from './entities/order';
12
+ import { VendorsType } from './entities/vendor';
13
+ import { SubscribedProgramType } from './entities/program';
12
14
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
13
15
  declare type MissingFieldsOfCompanySchema = {
14
16
  contacts?: ContactsSchema;
15
17
  extraInformations?: CompanyExtraInformationSchema;
16
18
  orders?: OrdersSchema;
17
19
  partnerTags?: PartnertagSchema;
20
+ subscribedPrograms?: SubscribedProgramSchema;
18
21
  subscriptions?: SubscriptionSchema;
19
22
  };
20
23
  declare type MissingFieldsOfArrowCompanySchema = {
@@ -48,7 +51,9 @@ export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
48
51
  export declare type PageSchema = Schema<PageType, boolean>;
49
52
  export declare type ProgramSchema = Schema<ProgramType, boolean>;
50
53
  export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
54
+ export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
51
55
  export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
56
+ export declare type VendorSchema = Schema<VendorsType, boolean>;
52
57
  export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
53
58
  export declare type SelectAllResultSchema = {
54
59
  [SelectableField.DATA]?: SelectAllResponseDataSchema;
@@ -62,7 +67,9 @@ export declare type SelectAllResponseDataSchema = {
62
67
  [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
63
68
  [SelectDataField.PARTNER]?: PartnerSchema;
64
69
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
70
+ [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
65
71
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
72
+ [SelectDataField.VENDOR]?: VendorSchema;
66
73
  [SelectDataField.WORKGROUP]?: WorkgroupSchema;
67
74
  };
68
75
  export declare type SelectOneResultSchema = {
@@ -76,7 +83,9 @@ export declare type SelectOneResponseDataSchema = {
76
83
  [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
77
84
  [SelectDataField.PARTNER]?: PartnerSchema;
78
85
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
86
+ [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
79
87
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
88
+ [SelectDataField.VENDOR]?: VendorSchema;
80
89
  [SelectDataField.WORKGROUP]?: WorkgroupSchema;
81
90
  };
82
91
  export declare type SelectAllQuerySchema = {
@@ -4,7 +4,8 @@ export declare enum OrganizationUnitFields {
4
4
  COLUMN_COMPANY_REF = "companyRef",
5
5
  COLUMN_NAME = "name",
6
6
  COLUMN_COUNT_USERS = "countUsers",
7
- COLUMN_COUNT_CUSTOMERS = "countCustomers"
7
+ COLUMN_COUNT_CUSTOMERS = "countCustomers",
8
+ COLUMN_COUNT_LICENSES = "countLicenses"
8
9
  }
9
10
  export declare type OrganizationUnitType = {
10
11
  [OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: string;
@@ -12,6 +13,7 @@ export declare type OrganizationUnitType = {
12
13
  [OrganizationUnitFields.COLUMN_NAME]: string;
13
14
  [OrganizationUnitFields.COLUMN_COUNT_USERS]?: number;
14
15
  [OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]?: number;
16
+ [OrganizationUnitFields.COLUMN_COUNT_LICENSES]?: number;
15
17
  };
16
18
  export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitType> {
17
19
  #private;
@@ -21,5 +23,6 @@ export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitTyp
21
23
  get name(): string;
22
24
  get countUsers(): number | undefined;
23
25
  get countCustomers(): number | undefined;
26
+ get countLicenses(): number | undefined;
24
27
  toJSON(): OrganizationUnitType;
25
28
  }
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
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
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _OrganizationUnit_organizationUnitRef, _OrganizationUnit_companyRef, _OrganizationUnit_name, _OrganizationUnit_countUsers, _OrganizationUnit_countCustomers;
13
+ var _OrganizationUnit_organizationUnitRef, _OrganizationUnit_companyRef, _OrganizationUnit_name, _OrganizationUnit_countUsers, _OrganizationUnit_countCustomers, _OrganizationUnit_countLicenses;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OrganizationUnit = exports.OrganizationUnitFields = void 0;
16
16
  const abstractEntity_1 = require("../../abstractEntity");
@@ -21,6 +21,7 @@ var OrganizationUnitFields;
21
21
  OrganizationUnitFields["COLUMN_NAME"] = "name";
22
22
  OrganizationUnitFields["COLUMN_COUNT_USERS"] = "countUsers";
23
23
  OrganizationUnitFields["COLUMN_COUNT_CUSTOMERS"] = "countCustomers";
24
+ OrganizationUnitFields["COLUMN_COUNT_LICENSES"] = "countLicenses";
24
25
  })(OrganizationUnitFields = exports.OrganizationUnitFields || (exports.OrganizationUnitFields = {}));
25
26
  class OrganizationUnit extends abstractEntity_1.AbstractEntity {
26
27
  constructor(organizationUnitInput) {
@@ -30,11 +31,13 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
30
31
  _OrganizationUnit_name.set(this, void 0);
31
32
  _OrganizationUnit_countUsers.set(this, void 0);
32
33
  _OrganizationUnit_countCustomers.set(this, void 0);
34
+ _OrganizationUnit_countLicenses.set(this, void 0);
33
35
  __classPrivateFieldSet(this, _OrganizationUnit_organizationUnitRef, organizationUnitInput[OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
34
36
  __classPrivateFieldSet(this, _OrganizationUnit_companyRef, organizationUnitInput[OrganizationUnitFields.COLUMN_COMPANY_REF], "f");
35
37
  __classPrivateFieldSet(this, _OrganizationUnit_name, organizationUnitInput[OrganizationUnitFields.COLUMN_NAME], "f");
36
38
  __classPrivateFieldSet(this, _OrganizationUnit_countUsers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_USERS], "f");
37
39
  __classPrivateFieldSet(this, _OrganizationUnit_countCustomers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS], "f");
40
+ __classPrivateFieldSet(this, _OrganizationUnit_countLicenses, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_LICENSES], "f");
38
41
  }
39
42
  get organizationUnitRef() {
40
43
  return __classPrivateFieldGet(this, _OrganizationUnit_organizationUnitRef, "f");
@@ -51,6 +54,9 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
51
54
  get countCustomers() {
52
55
  return __classPrivateFieldGet(this, _OrganizationUnit_countCustomers, "f");
53
56
  }
57
+ get countLicenses() {
58
+ return __classPrivateFieldGet(this, _OrganizationUnit_countLicenses, "f");
59
+ }
54
60
  toJSON() {
55
61
  return {
56
62
  [OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: this
@@ -59,9 +65,10 @@ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
59
65
  [OrganizationUnitFields.COLUMN_NAME]: this.name,
60
66
  [OrganizationUnitFields.COLUMN_COUNT_USERS]: this.countUsers,
61
67
  [OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]: this.countCustomers,
68
+ [OrganizationUnitFields.COLUMN_COUNT_LICENSES]: this.countLicenses,
62
69
  };
63
70
  }
64
71
  }
65
72
  exports.OrganizationUnit = OrganizationUnit;
66
- _OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_companyRef = new WeakMap(), _OrganizationUnit_name = new WeakMap(), _OrganizationUnit_countUsers = new WeakMap(), _OrganizationUnit_countCustomers = new WeakMap();
73
+ _OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_companyRef = new WeakMap(), _OrganizationUnit_name = new WeakMap(), _OrganizationUnit_countUsers = new WeakMap(), _OrganizationUnit_countCustomers = new WeakMap(), _OrganizationUnit_countLicenses = new WeakMap();
67
74
  //# sourceMappingURL=organizationUnit.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.88.0",
7
+ "version": "3.90.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",