@arrowsphere/api-client 3.20.0-rc.1 → 3.20.0-rc.2

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.
@@ -4,7 +4,7 @@ import { ContactCreate } from './entities/contactCreate';
4
4
  import { Contact } from './entities/contact';
5
5
  import { ContactList } from './entities/contactList';
6
6
  export declare enum ContactRequestFields {
7
- COLUMN_USERNAME = "xapUsername",
7
+ COLUMN_USERNAME = "username",
8
8
  COLUMN_FIRSTNAME = "firstname",
9
9
  COLUMN_LASTNAME = "lastname",
10
10
  COLUMN_EMAIL = "email",
@@ -8,7 +8,7 @@ const contact_1 = require("./entities/contact");
8
8
  const contactList_1 = require("./entities/contactList");
9
9
  var ContactRequestFields;
10
10
  (function (ContactRequestFields) {
11
- ContactRequestFields["COLUMN_USERNAME"] = "xapUsername";
11
+ ContactRequestFields["COLUMN_USERNAME"] = "username";
12
12
  ContactRequestFields["COLUMN_FIRSTNAME"] = "firstname";
13
13
  ContactRequestFields["COLUMN_LASTNAME"] = "lastname";
14
14
  ContactRequestFields["COLUMN_EMAIL"] = "email";
@@ -1,5 +1,6 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
2
  export declare enum ContactFields {
3
+ COLUMN_USERNAME = "username",
3
4
  COLUMN_ID = "id",
4
5
  COLUMN_COMPANY_ID = "companyId",
5
6
  COLUMN_RESELLER = "reseller",
@@ -13,6 +14,7 @@ export declare enum ContactFields {
13
14
  COLUMN_STATUS = "status"
14
15
  }
15
16
  export declare type ContactType = {
17
+ [ContactFields.COLUMN_USERNAME]: string | null;
16
18
  [ContactFields.COLUMN_ID]: number;
17
19
  [ContactFields.COLUMN_COMPANY_ID]: number;
18
20
  [ContactFields.COLUMN_RESELLER]: string;
@@ -28,6 +30,7 @@ export declare type ContactType = {
28
30
  export declare class Contact extends AbstractEntity<ContactType> {
29
31
  #private;
30
32
  constructor(contactDataInput: ContactType);
33
+ get username(): string | null;
31
34
  get id(): number;
32
35
  get companyId(): number;
33
36
  get reseller(): string;
@@ -12,12 +12,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _id, _companyId, _reseller, _firstname, _lastname, _email, _phone, _erpId, _type, _role, _status;
15
+ var _username, _id, _companyId, _reseller, _firstname, _lastname, _email, _phone, _erpId, _type, _role, _status;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Contact = exports.ContactFields = void 0;
18
18
  const abstractEntity_1 = require("../../abstractEntity");
19
19
  var ContactFields;
20
20
  (function (ContactFields) {
21
+ ContactFields["COLUMN_USERNAME"] = "username";
21
22
  ContactFields["COLUMN_ID"] = "id";
22
23
  ContactFields["COLUMN_COMPANY_ID"] = "companyId";
23
24
  ContactFields["COLUMN_RESELLER"] = "reseller";
@@ -33,6 +34,7 @@ var ContactFields;
33
34
  class Contact extends abstractEntity_1.AbstractEntity {
34
35
  constructor(contactDataInput) {
35
36
  super(contactDataInput);
37
+ _username.set(this, void 0);
36
38
  _id.set(this, void 0);
37
39
  _companyId.set(this, void 0);
38
40
  _reseller.set(this, void 0);
@@ -44,6 +46,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
44
46
  _type.set(this, void 0);
45
47
  _role.set(this, void 0);
46
48
  _status.set(this, void 0);
49
+ __classPrivateFieldSet(this, _username, contactDataInput[ContactFields.COLUMN_USERNAME]);
47
50
  __classPrivateFieldSet(this, _id, contactDataInput[ContactFields.COLUMN_ID]);
48
51
  __classPrivateFieldSet(this, _companyId, contactDataInput[ContactFields.COLUMN_COMPANY_ID]);
49
52
  __classPrivateFieldSet(this, _reseller, contactDataInput[ContactFields.COLUMN_RESELLER]);
@@ -56,6 +59,9 @@ class Contact extends abstractEntity_1.AbstractEntity {
56
59
  __classPrivateFieldSet(this, _role, contactDataInput[ContactFields.COLUMN_ROLE]);
57
60
  __classPrivateFieldSet(this, _status, contactDataInput[ContactFields.COLUMN_STATUS]);
58
61
  }
62
+ get username() {
63
+ return __classPrivateFieldGet(this, _username);
64
+ }
59
65
  get id() {
60
66
  return __classPrivateFieldGet(this, _id);
61
67
  }
@@ -91,6 +97,7 @@ class Contact extends abstractEntity_1.AbstractEntity {
91
97
  }
92
98
  toJSON() {
93
99
  return {
100
+ [ContactFields.COLUMN_USERNAME]: this.username,
94
101
  [ContactFields.COLUMN_ID]: this.id,
95
102
  [ContactFields.COLUMN_COMPANY_ID]: this.companyId,
96
103
  [ContactFields.COLUMN_RESELLER]: this.reseller,
@@ -106,5 +113,5 @@ class Contact extends abstractEntity_1.AbstractEntity {
106
113
  }
107
114
  }
108
115
  exports.Contact = Contact;
109
- _id = new WeakMap(), _companyId = new WeakMap(), _reseller = new WeakMap(), _firstname = new WeakMap(), _lastname = new WeakMap(), _email = new WeakMap(), _phone = new WeakMap(), _erpId = new WeakMap(), _type = new WeakMap(), _role = new WeakMap(), _status = new WeakMap();
116
+ _username = new WeakMap(), _id = new WeakMap(), _companyId = new WeakMap(), _reseller = new WeakMap(), _firstname = new WeakMap(), _lastname = new WeakMap(), _email = new WeakMap(), _phone = new WeakMap(), _erpId = new WeakMap(), _type = new WeakMap(), _role = new WeakMap(), _status = new WeakMap();
110
117
  //# sourceMappingURL=contact.js.map
@@ -13,14 +13,14 @@ export declare const InvitationContactFields: {
13
13
  };
14
14
  interface InvitationContactInterface {
15
15
  [InvitationContactFields.COLUMN_ID]: string;
16
- [InvitationContactFields.COLUMN_USERNAME]: string;
16
+ [InvitationContactFields.COLUMN_USERNAME]: string | null;
17
17
  }
18
18
  export declare type InvitationContactType = InvitationContactInterface & SharedContactInterface;
19
19
  export declare class InvitationContact extends AbstractEntity<InvitationContactType> {
20
20
  #private;
21
21
  constructor(getCustomersContactDataInput: InvitationContactType);
22
22
  get id(): string;
23
- get username(): string;
23
+ get username(): string | null;
24
24
  get firstName(): string;
25
25
  get lastName(): string;
26
26
  get email(): string;
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.20.0-rc.1",
7
+ "version": "3.20.0-rc.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",