@arrowsphere/api-client 3.82.0-rc.fdi.1 → 3.82.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,10 +3,10 @@
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.82.0] - 2023-12-27
6
+ ## [3.82.0] - 2023-12-29
7
7
 
8
8
  ### Added
9
- - [Customer Contact] add organization unit id in customer contact call
9
+ - [graphql-api] special price rates history
10
10
 
11
11
  ## [3.81.1] - 2023-12-21
12
12
 
@@ -14,8 +14,7 @@ export declare enum CustomerContactPayloadFields {
14
14
  COLUMN_PHONE = "phone",
15
15
  COLUMN_USERNAME = "username",
16
16
  COLUMN_TYPE = "type",
17
- COLUMN_ROLE = "role",
18
- COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
17
+ COLUMN_ROLE = "role"
19
18
  }
20
19
  export declare type PostCustomerContactPayload = {
21
20
  [CustomerContactPayloadFields.COLUMN_FIRST_NAME]: string;
@@ -25,7 +24,6 @@ export declare type PostCustomerContactPayload = {
25
24
  [CustomerContactPayloadFields.COLUMN_PHONE]: string;
26
25
  [CustomerContactPayloadFields.COLUMN_TYPE]: CustomerContactTypeType;
27
26
  [CustomerContactPayloadFields.COLUMN_ROLE]: CustomerContactRoleType;
28
- [CustomerContactPayloadFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
29
27
  };
30
28
  export declare type PostCustomerContact = {
31
29
  [ContactFields.COLUMN_FIRSTNAME]: string;
@@ -19,7 +19,6 @@ var CustomerContactPayloadFields;
19
19
  CustomerContactPayloadFields["COLUMN_USERNAME"] = "username";
20
20
  CustomerContactPayloadFields["COLUMN_TYPE"] = "type";
21
21
  CustomerContactPayloadFields["COLUMN_ROLE"] = "role";
22
- CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
23
22
  })(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
24
23
  var PostCustomerInvitationFields;
25
24
  (function (PostCustomerInvitationFields) {
@@ -25,8 +25,7 @@ export declare enum CustomerContactFields {
25
25
  COLUMN_TYPE = "type",
26
26
  COLUMN_ROLE = "role",
27
27
  COLUMN_IS_ACTIVE = "isActive",
28
- COLUMN_XCP_INVITATION = "xcpInvitation",
29
- COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
28
+ COLUMN_XCP_INVITATION = "xcpInvitation"
30
29
  }
31
30
  export declare type CustomerContactType = {
32
31
  [CustomerContactFields.COLUMN_REFERENCE]: string;
@@ -39,7 +38,6 @@ export declare type CustomerContactType = {
39
38
  [CustomerContactFields.COLUMN_ROLE]: string;
40
39
  [CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
41
40
  [CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
42
- [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
43
41
  };
44
42
  export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
45
43
  #private;
@@ -54,6 +52,5 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
54
52
  get role(): string;
55
53
  get isActive(): boolean;
56
54
  get xcpInvitation(): CustomerContactXcpInvitationType | undefined;
57
- get organizationUnitId(): number | undefined;
58
55
  toJSON(): CustomerContactType;
59
56
  }
@@ -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 _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation, _CustomerContact_organizationUnitId;
13
+ var _CustomerContact_reference, _CustomerContact_firstName, _CustomerContact_lastName, _CustomerContact_email, _CustomerContact_phone, _CustomerContact_username, _CustomerContact_type, _CustomerContact_role, _CustomerContact_isActive, _CustomerContact_xcpInvitation;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CustomerContact = exports.CustomerContactFields = exports.CustomerContactTypeEnum = exports.CustomerContactRoleEnum = void 0;
16
16
  const abstractEntity_1 = require("../../../../abstractEntity");
@@ -42,7 +42,6 @@ var CustomerContactFields;
42
42
  CustomerContactFields["COLUMN_ROLE"] = "role";
43
43
  CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
44
44
  CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
45
- CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
46
45
  })(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
47
46
  class CustomerContact extends abstractEntity_1.AbstractEntity {
48
47
  constructor(getCustomerContactDataInput) {
@@ -57,7 +56,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
57
56
  _CustomerContact_role.set(this, void 0);
58
57
  _CustomerContact_isActive.set(this, void 0);
59
58
  _CustomerContact_xcpInvitation.set(this, void 0);
60
- _CustomerContact_organizationUnitId.set(this, void 0);
61
59
  __classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
62
60
  __classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
63
61
  __classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
@@ -70,7 +68,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
70
68
  __classPrivateFieldSet(this, _CustomerContact_xcpInvitation, getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION]
71
69
  ? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
72
70
  : undefined, "f");
73
- __classPrivateFieldSet(this, _CustomerContact_organizationUnitId, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
74
71
  }
75
72
  get reference() {
76
73
  return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
@@ -102,9 +99,6 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
102
99
  get xcpInvitation() {
103
100
  return __classPrivateFieldGet(this, _CustomerContact_xcpInvitation, "f");
104
101
  }
105
- get organizationUnitId() {
106
- return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
107
- }
108
102
  toJSON() {
109
103
  return {
110
104
  [CustomerContactFields.COLUMN_REFERENCE]: this.reference,
@@ -117,11 +111,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
117
111
  [CustomerContactFields.COLUMN_ROLE]: this.role,
118
112
  [CustomerContactFields.COLUMN_IS_ACTIVE]: this.isActive,
119
113
  [CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
120
- [CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
121
- .organizationUnitId,
122
114
  };
123
115
  }
124
116
  }
125
117
  exports.CustomerContact = CustomerContact;
126
- _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap(), _CustomerContact_organizationUnitId = new WeakMap();
118
+ _CustomerContact_reference = new WeakMap(), _CustomerContact_firstName = new WeakMap(), _CustomerContact_lastName = new WeakMap(), _CustomerContact_email = new WeakMap(), _CustomerContact_phone = new WeakMap(), _CustomerContact_username = new WeakMap(), _CustomerContact_type = new WeakMap(), _CustomerContact_role = new WeakMap(), _CustomerContact_isActive = new WeakMap(), _CustomerContact_xcpInvitation = new WeakMap();
127
119
  //# sourceMappingURL=customerContact.js.map
@@ -3,7 +3,9 @@ export * from './types/graphqlApiSchemas';
3
3
  export * from './types/entities/contact';
4
4
  export * from './types/entities/company';
5
5
  export * from './types/entities/country';
6
+ export * from './types/entities/order';
6
7
  export * from './types/entities/partnertag';
7
8
  export * from './types/entities/subscription';
9
+ export * from './types/entities/specialPriceRate';
8
10
  export * from './types/entities/workgroup';
9
11
  export * from './graphqlApiClient';
@@ -19,8 +19,10 @@ __exportStar(require("./types/graphqlApiSchemas"), exports);
19
19
  __exportStar(require("./types/entities/contact"), exports);
20
20
  __exportStar(require("./types/entities/company"), exports);
21
21
  __exportStar(require("./types/entities/country"), exports);
22
+ __exportStar(require("./types/entities/order"), exports);
22
23
  __exportStar(require("./types/entities/partnertag"), exports);
23
24
  __exportStar(require("./types/entities/subscription"), exports);
25
+ __exportStar(require("./types/entities/specialPriceRate"), exports);
24
26
  __exportStar(require("./types/entities/workgroup"), exports);
25
27
  __exportStar(require("./graphqlApiClient"), exports);
26
28
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,6 @@
1
1
  import { ContactsType } from './contact';
2
2
  import { CountryType } from './country';
3
+ import { OrdersType } from './order';
3
4
  import { PartnertagType } from './partnertag';
4
5
  import { SubscriptionType } from './subscription';
5
6
  import { WorkgroupType } from './workgroup';
@@ -23,6 +24,7 @@ declare type BaseCompanyType = {
23
24
  internalReference?: string;
24
25
  locked?: boolean;
25
26
  name?: string;
27
+ orders?: OrdersType[];
26
28
  partnerRef?: string;
27
29
  partnerTags?: PartnertagType[];
28
30
  phone?: string;
@@ -0,0 +1,9 @@
1
+ import { SpecialPriceRateType } from './specialPriceRate';
2
+ export declare type OrdersType = {
3
+ id?: number;
4
+ items?: OrderItemsType[];
5
+ };
6
+ export declare type OrderItemsType = {
7
+ id?: number;
8
+ priceRates?: SpecialPriceRateType[];
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=order.js.map
@@ -0,0 +1,14 @@
1
+ import { CompanyTypeType } from './company';
2
+ export declare type SpecialPriceRateType = {
3
+ id?: number;
4
+ createdAt?: string;
5
+ endedAt?: string;
6
+ rate?: number;
7
+ startedAt?: string;
8
+ companyType?: CompanyTypeType;
9
+ type?: SubscriptionRateType;
10
+ };
11
+ export declare type SubscriptionRateType = {
12
+ id?: number;
13
+ name?: string;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=specialPriceRate.js.map
@@ -164,6 +164,7 @@ export declare type SelectOneResultType = {
164
164
  [Queries.SELECT_ONE]: {
165
165
  [SelectableField.DATA]?: SelectOneResponseDataType;
166
166
  [SelectableField.ERRORS]?: ErrorsType;
167
+ [SelectableField.PAGINATION]?: PageType;
167
168
  };
168
169
  };
169
170
  export declare type SelectOneResponseDataType = {
@@ -203,6 +204,7 @@ export declare type SelectOneQueryType = {
203
204
  __args?: QueryVariablesType;
204
205
  [SelectableField.DATA]: SelectOneResponseDataSchema;
205
206
  [SelectableField.ERRORS]?: ErrorsSchema;
207
+ [SelectableField.PAGINATION]?: PageSchema;
206
208
  };
207
209
  };
208
210
  export declare type SelectAllQueryType = {
@@ -7,23 +7,36 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
7
7
  import { ContactsType } from './entities/contact';
8
8
  import { ProgramType } from '../../catalog';
9
9
  import { SubscriptionType } from './entities/subscription';
10
+ import { SpecialPriceRateType } from './entities/specialPriceRate';
11
+ import { OrderItemsType, OrdersType } from './entities/order';
10
12
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
11
13
  declare type MissingFieldsOfCompanySchema = {
12
14
  contacts?: ContactsSchema;
13
15
  extraInformations?: CompanyExtraInformationSchema;
16
+ orders?: OrdersSchema;
14
17
  partnerTags?: PartnertagSchema;
15
18
  subscriptions?: SubscriptionSchema;
16
19
  };
17
20
  declare type MissingFieldsOfArrowCompanySchema = {
18
21
  extraInformations?: CompanyExtraInformationSchema;
22
+ orders?: OrdersSchema;
19
23
  subscriptions?: SubscriptionSchema;
20
24
  };
21
25
  declare type MissingFieldsOfEndCustomerSchema = {
22
26
  extraInformations?: CompanyExtraInformationSchema;
23
27
  contacts?: ContactsSchema;
28
+ orders?: OrdersSchema;
24
29
  partnerTags?: PartnertagSchema;
25
30
  partner?: PartnerSchema;
26
31
  };
32
+ declare type MissingFieldsOfOrderItemSchema = {
33
+ priceRates?: SpecialPriceRateSchema;
34
+ };
35
+ declare type MissingFieldsOfOrdersSchema = {
36
+ items?: OrderItemsSchema;
37
+ };
38
+ export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
39
+ export declare type OrdersSchema = Merge<Schema<OrdersType, boolean>, MissingFieldsOfOrdersSchema>;
27
40
  export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
28
41
  export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
29
42
  export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
@@ -34,6 +47,7 @@ export declare type CountrySchema = Schema<CountryType, boolean>;
34
47
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
35
48
  export declare type PageSchema = Schema<PageType, boolean>;
36
49
  export declare type ProgramSchema = Schema<ProgramType, boolean>;
50
+ export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
37
51
  export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
38
52
  export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
39
53
  export declare type SelectAllResultSchema = {
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.82.0-rc.fdi.1",
7
+ "version": "3.82.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",