@arrowsphere/api-client 3.19.0-rc.3 → 3.20.0-rc.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 +6 -0
- package/build/contact/contactClient.d.ts +6 -1
- package/build/contact/contactClient.js +1 -0
- package/build/customers/entities/invitations/contact/invitationContact.d.ts +4 -0
- package/build/customers/entities/invitations/contact/invitationContact.js +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.20.0] - 2023-01-30
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Add id on invitation contact
|
|
11
|
+
|
|
6
12
|
## [3.19.0] - 2023-01-23
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -4,6 +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
8
|
COLUMN_FIRSTNAME = "firstname",
|
|
8
9
|
COLUMN_LASTNAME = "lastname",
|
|
9
10
|
COLUMN_EMAIL = "email",
|
|
@@ -13,6 +14,7 @@ export declare enum ContactRequestFields {
|
|
|
13
14
|
COLUMN_ROLE = "role"
|
|
14
15
|
}
|
|
15
16
|
export declare type ContactRequestType = {
|
|
17
|
+
[ContactRequestFields.COLUMN_USERNAME]?: string;
|
|
16
18
|
[ContactRequestFields.COLUMN_FIRSTNAME]: string;
|
|
17
19
|
[ContactRequestFields.COLUMN_LASTNAME]: string;
|
|
18
20
|
[ContactRequestFields.COLUMN_EMAIL]: string;
|
|
@@ -21,6 +23,9 @@ export declare type ContactRequestType = {
|
|
|
21
23
|
[ContactRequestFields.COLUMN_TYPE]: string;
|
|
22
24
|
[ContactRequestFields.COLUMN_ROLE]: string;
|
|
23
25
|
};
|
|
26
|
+
export declare type ContactUpdateRequestType = {
|
|
27
|
+
[Property in keyof ContactRequestType]?: ContactRequestType[Property];
|
|
28
|
+
};
|
|
24
29
|
export declare class ContactClient extends AbstractClient {
|
|
25
30
|
/**
|
|
26
31
|
* The base path of the API
|
|
@@ -29,5 +34,5 @@ export declare class ContactClient extends AbstractClient {
|
|
|
29
34
|
createContact(postData: ContactRequestType, parameters?: Parameters): Promise<GetResult<ContactCreate>>;
|
|
30
35
|
listContact(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<ContactList>>;
|
|
31
36
|
getContact(contactReference: string, parameters?: Parameters): Promise<GetResult<Contact>>;
|
|
32
|
-
updateContact(contactReference: string, patchData:
|
|
37
|
+
updateContact(contactReference: string, patchData: ContactUpdateRequestType, parameters?: Parameters): Promise<GetResult<Contact>>;
|
|
33
38
|
}
|
|
@@ -8,6 +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
12
|
ContactRequestFields["COLUMN_FIRSTNAME"] = "firstname";
|
|
12
13
|
ContactRequestFields["COLUMN_LASTNAME"] = "lastname";
|
|
13
14
|
ContactRequestFields["COLUMN_EMAIL"] = "email";
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
2
|
import { SharedContactFields, SharedContactInterface } from '../../../../shared/contact/contact';
|
|
3
3
|
declare enum InvitationContactEnum {
|
|
4
|
+
COLUMN_ID = "id",
|
|
4
5
|
COLUMN_USERNAME = "username"
|
|
5
6
|
}
|
|
6
7
|
export declare const InvitationContactFields: {
|
|
7
8
|
COLUMN_FIRSTNAME: SharedContactFields.COLUMN_FIRSTNAME;
|
|
8
9
|
COLUMN_LASTNAME: SharedContactFields.COLUMN_LASTNAME;
|
|
9
10
|
COLUMN_EMAIL: SharedContactFields.COLUMN_EMAIL;
|
|
11
|
+
COLUMN_ID: InvitationContactEnum.COLUMN_ID;
|
|
10
12
|
COLUMN_USERNAME: InvitationContactEnum.COLUMN_USERNAME;
|
|
11
13
|
};
|
|
12
14
|
interface InvitationContactInterface {
|
|
15
|
+
[InvitationContactFields.COLUMN_ID]: string;
|
|
13
16
|
[InvitationContactFields.COLUMN_USERNAME]: string;
|
|
14
17
|
}
|
|
15
18
|
export declare type InvitationContactType = InvitationContactInterface & SharedContactInterface;
|
|
16
19
|
export declare class InvitationContact extends AbstractEntity<InvitationContactType> {
|
|
17
20
|
#private;
|
|
18
21
|
constructor(getCustomersContactDataInput: InvitationContactType);
|
|
22
|
+
get id(): string;
|
|
19
23
|
get username(): string;
|
|
20
24
|
get firstName(): string;
|
|
21
25
|
get lastName(): string;
|
|
@@ -12,13 +12,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
}
|
|
13
13
|
return privateMap.get(receiver);
|
|
14
14
|
};
|
|
15
|
-
var _username, _firstname, _lastname, _email;
|
|
15
|
+
var _id, _username, _firstname, _lastname, _email;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.InvitationContact = exports.InvitationContactFields = void 0;
|
|
18
18
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
19
19
|
const contact_1 = require("../../../../shared/contact/contact");
|
|
20
20
|
var InvitationContactEnum;
|
|
21
21
|
(function (InvitationContactEnum) {
|
|
22
|
+
InvitationContactEnum["COLUMN_ID"] = "id";
|
|
22
23
|
InvitationContactEnum["COLUMN_USERNAME"] = "username";
|
|
23
24
|
})(InvitationContactEnum || (InvitationContactEnum = {}));
|
|
24
25
|
exports.InvitationContactFields = {
|
|
@@ -28,15 +29,20 @@ exports.InvitationContactFields = {
|
|
|
28
29
|
class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
29
30
|
constructor(getCustomersContactDataInput) {
|
|
30
31
|
super(getCustomersContactDataInput);
|
|
32
|
+
_id.set(this, void 0);
|
|
31
33
|
_username.set(this, void 0);
|
|
32
34
|
_firstname.set(this, void 0);
|
|
33
35
|
_lastname.set(this, void 0);
|
|
34
36
|
_email.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _id, getCustomersContactDataInput[exports.InvitationContactFields.COLUMN_ID]);
|
|
35
38
|
__classPrivateFieldSet(this, _firstname, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_FIRSTNAME]);
|
|
36
39
|
__classPrivateFieldSet(this, _username, getCustomersContactDataInput[exports.InvitationContactFields.COLUMN_USERNAME]);
|
|
37
40
|
__classPrivateFieldSet(this, _lastname, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_LASTNAME]);
|
|
38
41
|
__classPrivateFieldSet(this, _email, getCustomersContactDataInput[contact_1.SharedContactFields.COLUMN_EMAIL]);
|
|
39
42
|
}
|
|
43
|
+
get id() {
|
|
44
|
+
return __classPrivateFieldGet(this, _id);
|
|
45
|
+
}
|
|
40
46
|
get username() {
|
|
41
47
|
return __classPrivateFieldGet(this, _username);
|
|
42
48
|
}
|
|
@@ -51,6 +57,7 @@ class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
|
51
57
|
}
|
|
52
58
|
toJSON() {
|
|
53
59
|
return {
|
|
60
|
+
[exports.InvitationContactFields.COLUMN_ID]: this.id,
|
|
54
61
|
[exports.InvitationContactFields.COLUMN_USERNAME]: this.username,
|
|
55
62
|
[contact_1.SharedContactFields.COLUMN_FIRSTNAME]: this.firstName,
|
|
56
63
|
[contact_1.SharedContactFields.COLUMN_LASTNAME]: this.lastName,
|
|
@@ -59,5 +66,5 @@ class InvitationContact extends abstractEntity_1.AbstractEntity {
|
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
68
|
exports.InvitationContact = InvitationContact;
|
|
62
|
-
_username = new WeakMap(), _firstname = new WeakMap(), _lastname = new WeakMap(), _email = new WeakMap();
|
|
69
|
+
_id = new WeakMap(), _username = new WeakMap(), _firstname = new WeakMap(), _lastname = new WeakMap(), _email = new WeakMap();
|
|
63
70
|
//# sourceMappingURL=invitationContact.js.map
|
package/package.json
CHANGED