@arrowsphere/api-client 3.113.0 → 3.114.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,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.114.0] - 2024.04.24
7
+
8
+ ### Added
9
+ - [customer] add customer by Ref Api Call
10
+
6
11
  ## [3.113.0] - 2024.04.24
7
12
 
8
13
  ### Added
@@ -89,6 +89,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
89
89
  */
90
90
  protected basePath: string;
91
91
  getCustomers(parameters?: Parameters): Promise<GetResult<DataCustomers>>;
92
+ getCustomerByRef(customerRef: string, parameters?: Parameters): Promise<GetResult<DataCustomers>>;
92
93
  getCustomerOrders(customerRef: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<DataListOrders>>;
93
94
  getCustomerInvitation(codeInvitation: string, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
94
95
  getCustomerContactList(customerReference: string, parameters?: Parameters): Promise<GetResult<CustomerContactList>>;
@@ -38,6 +38,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
38
38
  async getCustomers(parameters = {}) {
39
39
  return new getResult_1.GetResult(dataCustomers_1.DataCustomers, await this.get(parameters));
40
40
  }
41
+ async getCustomerByRef(customerRef, parameters = {}) {
42
+ this.path = `/${customerRef}`;
43
+ return await this.getCustomers(parameters);
44
+ }
41
45
  async getCustomerOrders(customerRef, perPage = 25, page = 1, parameters = {}) {
42
46
  this.setPerPage(perPage);
43
47
  this.setPage(page);
@@ -2,8 +2,10 @@ import { AbstractEntity } from '../../../abstractEntity';
2
2
  import { Contact, ContactType } from './contact/contact';
3
3
  import { Details, DetailsType } from './details/details';
4
4
  import { AdditionalExtraInformation, AdditionalExtraInformationType } from '../../../shared';
5
+ import { OrganizationUnit, OrganizationUnitType } from '../../../organisationUnit';
5
6
  export declare enum CustomerFields {
6
7
  COLUMN_REFERENCE = "Reference",
8
+ COLUMN_WORKGROUP_CODE = "WorkgroupCode",
7
9
  COLUMN_COMPANY_NAME = "CompanyName",
8
10
  COLUMN_PARTNER_COMPANY_ID = "PartnerCompanyId",
9
11
  COLUMN_ADDRESS_LINE_1 = "AddressLine1",
@@ -18,15 +20,39 @@ export declare enum CustomerFields {
18
20
  COLUMN_HEADCOUNT = "Headcount",
19
21
  COLUMN_TAX_NUMBER = "TaxNumber",
20
22
  COLUMN_REF = "Ref",
23
+ COLUMN_REGISTRATION_NUMBER = "RegistrationNumber",
21
24
  COLUMN_BILLING_ID = "BillingId",
25
+ COLUMN_BILLING_ADDRESS_1 = "BillingAddress1",
26
+ COLUMN_BILLING_ADDRESS_2 = "BillingAddress2",
27
+ COLUMN_BILLING_CITY = "BillingCity",
28
+ COLUMN_BILLING_STATE = "BillingState",
29
+ COLUMN_BILLING_ZIP_CODE = "BillingZipCode",
30
+ COLUMN_BILLING_COUNTRY_CODE = "BillingCountryCode",
31
+ COLUMN_ADMIN_NOTE = "AdminNote",
32
+ COLUMN_COMPANY_ISR = "Isr",
33
+ COLUMN_COMPANY_FSR = "Fsr",
34
+ COLUMN_PO_NUMBER_MANDATORY = "PoNumberMandatory",
35
+ COLUMN_TYPE = "Type",
22
36
  COLUMN_INTERNAL_REFERENCE = "InternalReference",
23
37
  COLUMN_CONTACT = "Contact",
24
38
  COLUMN_DELETED_AT = "DeletedAt",
25
39
  COLUMN_DETAILS = "Details",
26
- COLUMN_EXTRA_INFORMATION = "extraInformation"
40
+ COLUMN_EXTRA_INFORMATION = "extraInformation",
41
+ COLUMN_ORGANISATION_UNIT = "OrganisationUnit",
42
+ COLUMN_RESELLER = "Reseller",
43
+ COLUMN_PARTNER_TAGS = "PartnerTags",
44
+ COLUMN_PARTNER_TAGS_LABEL = "label"
27
45
  }
46
+ declare type CompanyReseller = {
47
+ [CustomerFields.COLUMN_REF]: string;
48
+ [CustomerFields.COLUMN_COMPANY_NAME]: string;
49
+ };
50
+ declare type PartnerTags = {
51
+ [CustomerFields.COLUMN_PARTNER_TAGS_LABEL]: string;
52
+ };
28
53
  export declare type CustomerType = {
29
54
  [CustomerFields.COLUMN_REFERENCE]: string;
55
+ [CustomerFields.COLUMN_WORKGROUP_CODE]: string;
30
56
  [CustomerFields.COLUMN_COMPANY_NAME]: string;
31
57
  [CustomerFields.COLUMN_PARTNER_COMPANY_ID]: string;
32
58
  [CustomerFields.COLUMN_ADDRESS_LINE_1]?: string;
@@ -41,17 +67,33 @@ export declare type CustomerType = {
41
67
  [CustomerFields.COLUMN_HEADCOUNT]: number;
42
68
  [CustomerFields.COLUMN_TAX_NUMBER]: string;
43
69
  [CustomerFields.COLUMN_REF]: string;
70
+ [CustomerFields.COLUMN_REGISTRATION_NUMBER]: string;
44
71
  [CustomerFields.COLUMN_BILLING_ID]: string;
72
+ [CustomerFields.COLUMN_BILLING_ADDRESS_1]?: string;
73
+ [CustomerFields.COLUMN_BILLING_ADDRESS_2]?: string;
74
+ [CustomerFields.COLUMN_BILLING_CITY]?: string;
75
+ [CustomerFields.COLUMN_BILLING_STATE]?: string;
76
+ [CustomerFields.COLUMN_BILLING_ZIP_CODE]?: string;
77
+ [CustomerFields.COLUMN_BILLING_COUNTRY_CODE]?: string;
78
+ [CustomerFields.COLUMN_ADMIN_NOTE]?: string;
79
+ [CustomerFields.COLUMN_COMPANY_ISR]?: string;
80
+ [CustomerFields.COLUMN_COMPANY_FSR]?: string;
81
+ [CustomerFields.COLUMN_PO_NUMBER_MANDATORY]?: string;
82
+ [CustomerFields.COLUMN_TYPE]: string;
45
83
  [CustomerFields.COLUMN_INTERNAL_REFERENCE]: string;
46
84
  [CustomerFields.COLUMN_CONTACT]: ContactType;
47
85
  [CustomerFields.COLUMN_DELETED_AT]?: string | null;
48
86
  [CustomerFields.COLUMN_DETAILS]: DetailsType;
49
87
  [CustomerFields.COLUMN_EXTRA_INFORMATION]?: AdditionalExtraInformationType;
88
+ [CustomerFields.COLUMN_ORGANISATION_UNIT]?: OrganizationUnitType;
89
+ [CustomerFields.COLUMN_RESELLER]?: CompanyReseller;
90
+ [CustomerFields.COLUMN_PARTNER_TAGS]?: PartnerTags[];
50
91
  };
51
92
  export declare class Customer extends AbstractEntity<CustomerType> {
52
93
  #private;
53
94
  constructor(getCustomersDataInput: CustomerType);
54
95
  get Reference(): string;
96
+ get WorkgroupCode(): string;
55
97
  get CompanyName(): string;
56
98
  get PartnerCompanyId(): string;
57
99
  get AddressLine1(): string | undefined;
@@ -66,11 +108,27 @@ export declare class Customer extends AbstractEntity<CustomerType> {
66
108
  get Headcount(): number;
67
109
  get TaxNumber(): string;
68
110
  get Ref(): string;
111
+ get RegistrationNumber(): string;
69
112
  get BillingId(): string;
113
+ get BillingAddress1(): string | undefined;
114
+ get BillingAddress2(): string | undefined;
115
+ get BillingCity(): string | undefined;
116
+ get BillingState(): string | undefined;
117
+ get BillingZipCode(): string | undefined;
118
+ get BillingCountryCode(): string | undefined;
119
+ get AdminNote(): string | undefined;
120
+ get Isr(): string | undefined;
121
+ get Fsr(): string | undefined;
122
+ get PoNumberMandatory(): string | undefined;
123
+ get Type(): string;
70
124
  get InternalReference(): string;
71
125
  get Contact(): Contact;
72
126
  get Details(): Details;
73
127
  get DeletedAt(): string | null | undefined;
74
128
  get ExtraInformation(): AdditionalExtraInformation | undefined;
129
+ get OrganisationUnit(): OrganizationUnit | undefined;
130
+ get Reseller(): CompanyReseller | undefined;
131
+ get PartnerTags(): PartnerTags[] | undefined;
75
132
  toJSON(): CustomerType;
76
133
  }
134
+ export {};
@@ -10,16 +10,18 @@ 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 _Customer_reference, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_billingId, _Customer_internalReference, _Customer_contact, _Customer_deletedAt, _Customer_details, _Customer_extraInformation;
13
+ var _Customer_reference, _Customer_workgroupCode, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_registrationNumber, _Customer_billingId, _Customer_billingAddress1, _Customer_billingAddress2, _Customer_billingCity, _Customer_billingState, _Customer_billingZipCode, _Customer_billingCountryCode, _Customer_adminNote, _Customer_isr, _Customer_fsr, _Customer_poNumberMandatory, _Customer_type, _Customer_internalReference, _Customer_contact, _Customer_deletedAt, _Customer_details, _Customer_extraInformation, _Customer_organisationUnit, _Customer_reseller, _Customer_partnerTags;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Customer = exports.CustomerFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
17
17
  const contact_1 = require("./contact/contact");
18
18
  const details_1 = require("./details/details");
19
19
  const shared_1 = require("../../../shared");
20
+ const organisationUnit_1 = require("../../../organisationUnit");
20
21
  var CustomerFields;
21
22
  (function (CustomerFields) {
22
23
  CustomerFields["COLUMN_REFERENCE"] = "Reference";
24
+ CustomerFields["COLUMN_WORKGROUP_CODE"] = "WorkgroupCode";
23
25
  CustomerFields["COLUMN_COMPANY_NAME"] = "CompanyName";
24
26
  CustomerFields["COLUMN_PARTNER_COMPANY_ID"] = "PartnerCompanyId";
25
27
  CustomerFields["COLUMN_ADDRESS_LINE_1"] = "AddressLine1";
@@ -34,17 +36,34 @@ var CustomerFields;
34
36
  CustomerFields["COLUMN_HEADCOUNT"] = "Headcount";
35
37
  CustomerFields["COLUMN_TAX_NUMBER"] = "TaxNumber";
36
38
  CustomerFields["COLUMN_REF"] = "Ref";
39
+ CustomerFields["COLUMN_REGISTRATION_NUMBER"] = "RegistrationNumber";
37
40
  CustomerFields["COLUMN_BILLING_ID"] = "BillingId";
41
+ CustomerFields["COLUMN_BILLING_ADDRESS_1"] = "BillingAddress1";
42
+ CustomerFields["COLUMN_BILLING_ADDRESS_2"] = "BillingAddress2";
43
+ CustomerFields["COLUMN_BILLING_CITY"] = "BillingCity";
44
+ CustomerFields["COLUMN_BILLING_STATE"] = "BillingState";
45
+ CustomerFields["COLUMN_BILLING_ZIP_CODE"] = "BillingZipCode";
46
+ CustomerFields["COLUMN_BILLING_COUNTRY_CODE"] = "BillingCountryCode";
47
+ CustomerFields["COLUMN_ADMIN_NOTE"] = "AdminNote";
48
+ CustomerFields["COLUMN_COMPANY_ISR"] = "Isr";
49
+ CustomerFields["COLUMN_COMPANY_FSR"] = "Fsr";
50
+ CustomerFields["COLUMN_PO_NUMBER_MANDATORY"] = "PoNumberMandatory";
51
+ CustomerFields["COLUMN_TYPE"] = "Type";
38
52
  CustomerFields["COLUMN_INTERNAL_REFERENCE"] = "InternalReference";
39
53
  CustomerFields["COLUMN_CONTACT"] = "Contact";
40
54
  CustomerFields["COLUMN_DELETED_AT"] = "DeletedAt";
41
55
  CustomerFields["COLUMN_DETAILS"] = "Details";
42
56
  CustomerFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
57
+ CustomerFields["COLUMN_ORGANISATION_UNIT"] = "OrganisationUnit";
58
+ CustomerFields["COLUMN_RESELLER"] = "Reseller";
59
+ CustomerFields["COLUMN_PARTNER_TAGS"] = "PartnerTags";
60
+ CustomerFields["COLUMN_PARTNER_TAGS_LABEL"] = "label";
43
61
  })(CustomerFields = exports.CustomerFields || (exports.CustomerFields = {}));
44
62
  class Customer extends abstractEntity_1.AbstractEntity {
45
63
  constructor(getCustomersDataInput) {
46
64
  super(getCustomersDataInput);
47
65
  _Customer_reference.set(this, void 0);
66
+ _Customer_workgroupCode.set(this, void 0);
48
67
  _Customer_companyName.set(this, void 0);
49
68
  _Customer_partnerCompanyId.set(this, void 0);
50
69
  _Customer_addressLine1.set(this, void 0);
@@ -59,13 +78,29 @@ class Customer extends abstractEntity_1.AbstractEntity {
59
78
  _Customer_headcount.set(this, void 0);
60
79
  _Customer_taxNumber.set(this, void 0);
61
80
  _Customer_ref.set(this, void 0);
81
+ _Customer_registrationNumber.set(this, void 0);
62
82
  _Customer_billingId.set(this, void 0);
83
+ _Customer_billingAddress1.set(this, void 0);
84
+ _Customer_billingAddress2.set(this, void 0);
85
+ _Customer_billingCity.set(this, void 0);
86
+ _Customer_billingState.set(this, void 0);
87
+ _Customer_billingZipCode.set(this, void 0);
88
+ _Customer_billingCountryCode.set(this, void 0);
89
+ _Customer_adminNote.set(this, void 0);
90
+ _Customer_isr.set(this, void 0);
91
+ _Customer_fsr.set(this, void 0);
92
+ _Customer_poNumberMandatory.set(this, void 0);
93
+ _Customer_type.set(this, void 0);
63
94
  _Customer_internalReference.set(this, void 0);
64
95
  _Customer_contact.set(this, void 0);
65
96
  _Customer_deletedAt.set(this, void 0);
66
97
  _Customer_details.set(this, void 0);
67
98
  _Customer_extraInformation.set(this, void 0);
99
+ _Customer_organisationUnit.set(this, void 0);
100
+ _Customer_reseller.set(this, void 0);
101
+ _Customer_partnerTags.set(this, void 0);
68
102
  __classPrivateFieldSet(this, _Customer_reference, getCustomersDataInput[CustomerFields.COLUMN_REFERENCE], "f");
103
+ __classPrivateFieldSet(this, _Customer_workgroupCode, getCustomersDataInput[CustomerFields.COLUMN_WORKGROUP_CODE], "f");
69
104
  __classPrivateFieldSet(this, _Customer_companyName, getCustomersDataInput[CustomerFields.COLUMN_COMPANY_NAME], "f");
70
105
  __classPrivateFieldSet(this, _Customer_partnerCompanyId, getCustomersDataInput[CustomerFields.COLUMN_PARTNER_COMPANY_ID], "f");
71
106
  __classPrivateFieldSet(this, _Customer_addressLine1, getCustomersDataInput[CustomerFields.COLUMN_ADDRESS_LINE_1], "f");
@@ -80,7 +115,19 @@ class Customer extends abstractEntity_1.AbstractEntity {
80
115
  __classPrivateFieldSet(this, _Customer_headcount, getCustomersDataInput[CustomerFields.COLUMN_HEADCOUNT], "f");
81
116
  __classPrivateFieldSet(this, _Customer_taxNumber, getCustomersDataInput[CustomerFields.COLUMN_TAX_NUMBER], "f");
82
117
  __classPrivateFieldSet(this, _Customer_ref, getCustomersDataInput[CustomerFields.COLUMN_REF], "f");
118
+ __classPrivateFieldSet(this, _Customer_registrationNumber, getCustomersDataInput[CustomerFields.COLUMN_REGISTRATION_NUMBER], "f");
83
119
  __classPrivateFieldSet(this, _Customer_billingId, getCustomersDataInput[CustomerFields.COLUMN_BILLING_ID], "f");
120
+ __classPrivateFieldSet(this, _Customer_billingAddress1, getCustomersDataInput[CustomerFields.COLUMN_BILLING_ADDRESS_1], "f");
121
+ __classPrivateFieldSet(this, _Customer_billingAddress2, getCustomersDataInput[CustomerFields.COLUMN_BILLING_ADDRESS_2], "f");
122
+ __classPrivateFieldSet(this, _Customer_billingCity, getCustomersDataInput[CustomerFields.COLUMN_BILLING_CITY], "f");
123
+ __classPrivateFieldSet(this, _Customer_billingState, getCustomersDataInput[CustomerFields.COLUMN_BILLING_STATE], "f");
124
+ __classPrivateFieldSet(this, _Customer_billingZipCode, getCustomersDataInput[CustomerFields.COLUMN_BILLING_ZIP_CODE], "f");
125
+ __classPrivateFieldSet(this, _Customer_billingCountryCode, getCustomersDataInput[CustomerFields.COLUMN_BILLING_COUNTRY_CODE], "f");
126
+ __classPrivateFieldSet(this, _Customer_adminNote, getCustomersDataInput[CustomerFields.COLUMN_ADMIN_NOTE], "f");
127
+ __classPrivateFieldSet(this, _Customer_isr, getCustomersDataInput[CustomerFields.COLUMN_COMPANY_ISR], "f");
128
+ __classPrivateFieldSet(this, _Customer_fsr, getCustomersDataInput[CustomerFields.COLUMN_COMPANY_FSR], "f");
129
+ __classPrivateFieldSet(this, _Customer_poNumberMandatory, getCustomersDataInput[CustomerFields.COLUMN_PO_NUMBER_MANDATORY], "f");
130
+ __classPrivateFieldSet(this, _Customer_type, getCustomersDataInput[CustomerFields.COLUMN_TYPE], "f");
84
131
  __classPrivateFieldSet(this, _Customer_internalReference, getCustomersDataInput[CustomerFields.COLUMN_INTERNAL_REFERENCE], "f");
85
132
  __classPrivateFieldSet(this, _Customer_contact, new contact_1.Contact(getCustomersDataInput[CustomerFields.COLUMN_CONTACT]), "f");
86
133
  __classPrivateFieldSet(this, _Customer_deletedAt, getCustomersDataInput[CustomerFields.COLUMN_DELETED_AT], "f");
@@ -88,10 +135,18 @@ class Customer extends abstractEntity_1.AbstractEntity {
88
135
  __classPrivateFieldSet(this, _Customer_extraInformation, getCustomersDataInput[CustomerFields.COLUMN_EXTRA_INFORMATION]
89
136
  ? new shared_1.AdditionalExtraInformation(getCustomersDataInput[CustomerFields.COLUMN_EXTRA_INFORMATION])
90
137
  : undefined, "f");
138
+ __classPrivateFieldSet(this, _Customer_organisationUnit, getCustomersDataInput[CustomerFields.COLUMN_ORGANISATION_UNIT]
139
+ ? new organisationUnit_1.OrganizationUnit(getCustomersDataInput[CustomerFields.COLUMN_ORGANISATION_UNIT])
140
+ : undefined, "f");
141
+ __classPrivateFieldSet(this, _Customer_reseller, getCustomersDataInput[CustomerFields.COLUMN_RESELLER], "f");
142
+ __classPrivateFieldSet(this, _Customer_partnerTags, getCustomersDataInput[CustomerFields.COLUMN_PARTNER_TAGS], "f");
91
143
  }
92
144
  get Reference() {
93
145
  return __classPrivateFieldGet(this, _Customer_reference, "f");
94
146
  }
147
+ get WorkgroupCode() {
148
+ return __classPrivateFieldGet(this, _Customer_workgroupCode, "f");
149
+ }
95
150
  get CompanyName() {
96
151
  return __classPrivateFieldGet(this, _Customer_companyName, "f");
97
152
  }
@@ -134,9 +189,45 @@ class Customer extends abstractEntity_1.AbstractEntity {
134
189
  get Ref() {
135
190
  return __classPrivateFieldGet(this, _Customer_ref, "f");
136
191
  }
192
+ get RegistrationNumber() {
193
+ return __classPrivateFieldGet(this, _Customer_registrationNumber, "f");
194
+ }
137
195
  get BillingId() {
138
196
  return __classPrivateFieldGet(this, _Customer_billingId, "f");
139
197
  }
198
+ get BillingAddress1() {
199
+ return __classPrivateFieldGet(this, _Customer_billingAddress1, "f");
200
+ }
201
+ get BillingAddress2() {
202
+ return __classPrivateFieldGet(this, _Customer_billingAddress2, "f");
203
+ }
204
+ get BillingCity() {
205
+ return __classPrivateFieldGet(this, _Customer_billingCity, "f");
206
+ }
207
+ get BillingState() {
208
+ return __classPrivateFieldGet(this, _Customer_billingState, "f");
209
+ }
210
+ get BillingZipCode() {
211
+ return __classPrivateFieldGet(this, _Customer_billingZipCode, "f");
212
+ }
213
+ get BillingCountryCode() {
214
+ return __classPrivateFieldGet(this, _Customer_billingCountryCode, "f");
215
+ }
216
+ get AdminNote() {
217
+ return __classPrivateFieldGet(this, _Customer_adminNote, "f");
218
+ }
219
+ get Isr() {
220
+ return __classPrivateFieldGet(this, _Customer_isr, "f");
221
+ }
222
+ get Fsr() {
223
+ return __classPrivateFieldGet(this, _Customer_fsr, "f");
224
+ }
225
+ get PoNumberMandatory() {
226
+ return __classPrivateFieldGet(this, _Customer_poNumberMandatory, "f");
227
+ }
228
+ get Type() {
229
+ return __classPrivateFieldGet(this, _Customer_type, "f");
230
+ }
140
231
  get InternalReference() {
141
232
  return __classPrivateFieldGet(this, _Customer_internalReference, "f");
142
233
  }
@@ -152,10 +243,20 @@ class Customer extends abstractEntity_1.AbstractEntity {
152
243
  get ExtraInformation() {
153
244
  return __classPrivateFieldGet(this, _Customer_extraInformation, "f");
154
245
  }
246
+ get OrganisationUnit() {
247
+ return __classPrivateFieldGet(this, _Customer_organisationUnit, "f");
248
+ }
249
+ get Reseller() {
250
+ return __classPrivateFieldGet(this, _Customer_reseller, "f");
251
+ }
252
+ get PartnerTags() {
253
+ return __classPrivateFieldGet(this, _Customer_partnerTags, "f");
254
+ }
155
255
  toJSON() {
156
- var _a;
256
+ var _a, _b;
157
257
  return {
158
258
  [CustomerFields.COLUMN_REFERENCE]: this.Reference,
259
+ [CustomerFields.COLUMN_WORKGROUP_CODE]: this.WorkgroupCode,
159
260
  [CustomerFields.COLUMN_COMPANY_NAME]: this.CompanyName,
160
261
  [CustomerFields.COLUMN_PARTNER_COMPANY_ID]: this.PartnerCompanyId,
161
262
  [CustomerFields.COLUMN_ADDRESS_LINE_1]: this.AddressLine1,
@@ -170,15 +271,30 @@ class Customer extends abstractEntity_1.AbstractEntity {
170
271
  [CustomerFields.COLUMN_HEADCOUNT]: this.Headcount,
171
272
  [CustomerFields.COLUMN_TAX_NUMBER]: this.TaxNumber,
172
273
  [CustomerFields.COLUMN_REF]: this.Ref,
274
+ [CustomerFields.COLUMN_REGISTRATION_NUMBER]: this.RegistrationNumber,
173
275
  [CustomerFields.COLUMN_BILLING_ID]: this.BillingId,
276
+ [CustomerFields.COLUMN_BILLING_ADDRESS_1]: this.BillingAddress1,
277
+ [CustomerFields.COLUMN_BILLING_ADDRESS_2]: this.BillingAddress2,
278
+ [CustomerFields.COLUMN_BILLING_CITY]: this.BillingCity,
279
+ [CustomerFields.COLUMN_BILLING_STATE]: this.BillingState,
280
+ [CustomerFields.COLUMN_BILLING_ZIP_CODE]: this.BillingZipCode,
281
+ [CustomerFields.COLUMN_BILLING_COUNTRY_CODE]: this.BillingCountryCode,
282
+ [CustomerFields.COLUMN_ADMIN_NOTE]: this.AdminNote,
283
+ [CustomerFields.COLUMN_COMPANY_ISR]: this.Isr,
284
+ [CustomerFields.COLUMN_COMPANY_FSR]: this.Fsr,
285
+ [CustomerFields.COLUMN_PO_NUMBER_MANDATORY]: this.PoNumberMandatory,
286
+ [CustomerFields.COLUMN_TYPE]: this.Type,
174
287
  [CustomerFields.COLUMN_INTERNAL_REFERENCE]: this.InternalReference,
175
288
  [CustomerFields.COLUMN_CONTACT]: this.Contact.toJSON(),
176
289
  [CustomerFields.COLUMN_DETAILS]: this.Details.toJSON(),
177
290
  [CustomerFields.COLUMN_DELETED_AT]: this.DeletedAt,
178
291
  [CustomerFields.COLUMN_EXTRA_INFORMATION]: (_a = this.ExtraInformation) === null || _a === void 0 ? void 0 : _a.toJSON(),
292
+ [CustomerFields.COLUMN_ORGANISATION_UNIT]: (_b = this.OrganisationUnit) === null || _b === void 0 ? void 0 : _b.toJSON(),
293
+ [CustomerFields.COLUMN_RESELLER]: this.Reseller,
294
+ [CustomerFields.COLUMN_PARTNER_TAGS]: this.PartnerTags,
179
295
  };
180
296
  }
181
297
  }
182
298
  exports.Customer = Customer;
183
- _Customer_reference = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(), _Customer_details = new WeakMap(), _Customer_extraInformation = new WeakMap();
299
+ _Customer_reference = new WeakMap(), _Customer_workgroupCode = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_registrationNumber = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_billingAddress1 = new WeakMap(), _Customer_billingAddress2 = new WeakMap(), _Customer_billingCity = new WeakMap(), _Customer_billingState = new WeakMap(), _Customer_billingZipCode = new WeakMap(), _Customer_billingCountryCode = new WeakMap(), _Customer_adminNote = new WeakMap(), _Customer_isr = new WeakMap(), _Customer_fsr = new WeakMap(), _Customer_poNumberMandatory = new WeakMap(), _Customer_type = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(), _Customer_details = new WeakMap(), _Customer_extraInformation = new WeakMap(), _Customer_organisationUnit = new WeakMap(), _Customer_reseller = new WeakMap(), _Customer_partnerTags = new WeakMap();
184
300
  //# sourceMappingURL=customer.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.113.0",
7
+ "version": "3.114.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",