@arrowsphere/api-client 3.173.0 → 3.174.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.174.0] - 2025.02.14
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [contact] add fields xap username and xcp invitation in get contact response payload
|
|
10
|
+
|
|
6
11
|
## [3.173.0] - 2025.02.13
|
|
7
12
|
|
|
8
13
|
### Updated
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { XcpInvitation, XcpInvitationType } from './xcpInvitation';
|
|
2
3
|
export declare enum ContactFields {
|
|
3
4
|
COLUMN_ID = "id",
|
|
4
5
|
COLUMN_COMPANY_ID = "companyId",
|
|
@@ -10,7 +11,9 @@ export declare enum ContactFields {
|
|
|
10
11
|
COLUMN_ERP_ID = "erpId",
|
|
11
12
|
COLUMN_TYPE = "type",
|
|
12
13
|
COLUMN_ROLE = "role",
|
|
13
|
-
COLUMN_STATUS = "status"
|
|
14
|
+
COLUMN_STATUS = "status",
|
|
15
|
+
COLUMN_XAP_USERNAME = "xapUsername",
|
|
16
|
+
COLUMN_XCP_INVITATION = "xcpInvitation"
|
|
14
17
|
}
|
|
15
18
|
export declare type ContactType = {
|
|
16
19
|
[ContactFields.COLUMN_ID]: number;
|
|
@@ -24,6 +27,8 @@ export declare type ContactType = {
|
|
|
24
27
|
[ContactFields.COLUMN_TYPE]: string;
|
|
25
28
|
[ContactFields.COLUMN_ROLE]: string;
|
|
26
29
|
[ContactFields.COLUMN_STATUS]: string;
|
|
30
|
+
[ContactFields.COLUMN_XAP_USERNAME]?: string;
|
|
31
|
+
[ContactFields.COLUMN_XCP_INVITATION]?: XcpInvitationType;
|
|
27
32
|
};
|
|
28
33
|
export declare class Contact extends AbstractEntity<ContactType> {
|
|
29
34
|
#private;
|
|
@@ -39,5 +44,7 @@ export declare class Contact extends AbstractEntity<ContactType> {
|
|
|
39
44
|
get type(): string;
|
|
40
45
|
get role(): string;
|
|
41
46
|
get status(): string;
|
|
47
|
+
get xapUsername(): string | undefined;
|
|
48
|
+
get xcpInvitation(): XcpInvitation | undefined;
|
|
42
49
|
toJSON(): ContactType;
|
|
43
50
|
}
|
|
@@ -10,10 +10,11 @@ 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 _Contact_id, _Contact_companyId, _Contact_reseller, _Contact_firstname, _Contact_lastname, _Contact_email, _Contact_phone, _Contact_erpId, _Contact_type, _Contact_role, _Contact_status;
|
|
13
|
+
var _Contact_id, _Contact_companyId, _Contact_reseller, _Contact_firstname, _Contact_lastname, _Contact_email, _Contact_phone, _Contact_erpId, _Contact_type, _Contact_role, _Contact_status, _Contact_xapUsername, _Contact_xcpInvitation;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Contact = exports.ContactFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const xcpInvitation_1 = require("./xcpInvitation");
|
|
17
18
|
var ContactFields;
|
|
18
19
|
(function (ContactFields) {
|
|
19
20
|
ContactFields["COLUMN_ID"] = "id";
|
|
@@ -27,6 +28,8 @@ var ContactFields;
|
|
|
27
28
|
ContactFields["COLUMN_TYPE"] = "type";
|
|
28
29
|
ContactFields["COLUMN_ROLE"] = "role";
|
|
29
30
|
ContactFields["COLUMN_STATUS"] = "status";
|
|
31
|
+
ContactFields["COLUMN_XAP_USERNAME"] = "xapUsername";
|
|
32
|
+
ContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
|
|
30
33
|
})(ContactFields = exports.ContactFields || (exports.ContactFields = {}));
|
|
31
34
|
class Contact extends abstractEntity_1.AbstractEntity {
|
|
32
35
|
constructor(contactDataInput) {
|
|
@@ -42,6 +45,8 @@ class Contact extends abstractEntity_1.AbstractEntity {
|
|
|
42
45
|
_Contact_type.set(this, void 0);
|
|
43
46
|
_Contact_role.set(this, void 0);
|
|
44
47
|
_Contact_status.set(this, void 0);
|
|
48
|
+
_Contact_xapUsername.set(this, void 0);
|
|
49
|
+
_Contact_xcpInvitation.set(this, void 0);
|
|
45
50
|
__classPrivateFieldSet(this, _Contact_id, contactDataInput[ContactFields.COLUMN_ID], "f");
|
|
46
51
|
__classPrivateFieldSet(this, _Contact_companyId, contactDataInput[ContactFields.COLUMN_COMPANY_ID], "f");
|
|
47
52
|
__classPrivateFieldSet(this, _Contact_reseller, contactDataInput[ContactFields.COLUMN_RESELLER], "f");
|
|
@@ -53,6 +58,10 @@ class Contact extends abstractEntity_1.AbstractEntity {
|
|
|
53
58
|
__classPrivateFieldSet(this, _Contact_type, contactDataInput[ContactFields.COLUMN_TYPE], "f");
|
|
54
59
|
__classPrivateFieldSet(this, _Contact_role, contactDataInput[ContactFields.COLUMN_ROLE], "f");
|
|
55
60
|
__classPrivateFieldSet(this, _Contact_status, contactDataInput[ContactFields.COLUMN_STATUS], "f");
|
|
61
|
+
__classPrivateFieldSet(this, _Contact_xapUsername, contactDataInput[ContactFields.COLUMN_XAP_USERNAME], "f");
|
|
62
|
+
__classPrivateFieldSet(this, _Contact_xcpInvitation, contactDataInput[ContactFields.COLUMN_XCP_INVITATION]
|
|
63
|
+
? new xcpInvitation_1.XcpInvitation(contactDataInput[ContactFields.COLUMN_XCP_INVITATION])
|
|
64
|
+
: undefined, "f");
|
|
56
65
|
}
|
|
57
66
|
get id() {
|
|
58
67
|
return __classPrivateFieldGet(this, _Contact_id, "f");
|
|
@@ -87,7 +96,14 @@ class Contact extends abstractEntity_1.AbstractEntity {
|
|
|
87
96
|
get status() {
|
|
88
97
|
return __classPrivateFieldGet(this, _Contact_status, "f");
|
|
89
98
|
}
|
|
99
|
+
get xapUsername() {
|
|
100
|
+
return __classPrivateFieldGet(this, _Contact_xapUsername, "f");
|
|
101
|
+
}
|
|
102
|
+
get xcpInvitation() {
|
|
103
|
+
return __classPrivateFieldGet(this, _Contact_xcpInvitation, "f");
|
|
104
|
+
}
|
|
90
105
|
toJSON() {
|
|
106
|
+
var _a;
|
|
91
107
|
return {
|
|
92
108
|
[ContactFields.COLUMN_ID]: this.id,
|
|
93
109
|
[ContactFields.COLUMN_COMPANY_ID]: this.companyId,
|
|
@@ -100,9 +116,11 @@ class Contact extends abstractEntity_1.AbstractEntity {
|
|
|
100
116
|
[ContactFields.COLUMN_TYPE]: this.type,
|
|
101
117
|
[ContactFields.COLUMN_ROLE]: this.role,
|
|
102
118
|
[ContactFields.COLUMN_STATUS]: this.status,
|
|
119
|
+
[ContactFields.COLUMN_XAP_USERNAME]: this.xapUsername,
|
|
120
|
+
[ContactFields.COLUMN_XCP_INVITATION]: (_a = this.xcpInvitation) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
103
121
|
};
|
|
104
122
|
}
|
|
105
123
|
}
|
|
106
124
|
exports.Contact = Contact;
|
|
107
|
-
_Contact_id = new WeakMap(), _Contact_companyId = new WeakMap(), _Contact_reseller = new WeakMap(), _Contact_firstname = new WeakMap(), _Contact_lastname = new WeakMap(), _Contact_email = new WeakMap(), _Contact_phone = new WeakMap(), _Contact_erpId = new WeakMap(), _Contact_type = new WeakMap(), _Contact_role = new WeakMap(), _Contact_status = new WeakMap();
|
|
125
|
+
_Contact_id = new WeakMap(), _Contact_companyId = new WeakMap(), _Contact_reseller = new WeakMap(), _Contact_firstname = new WeakMap(), _Contact_lastname = new WeakMap(), _Contact_email = new WeakMap(), _Contact_phone = new WeakMap(), _Contact_erpId = new WeakMap(), _Contact_type = new WeakMap(), _Contact_role = new WeakMap(), _Contact_status = new WeakMap(), _Contact_xapUsername = new WeakMap(), _Contact_xcpInvitation = new WeakMap();
|
|
108
126
|
//# sourceMappingURL=contact.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum XcpInvitationFields {
|
|
3
|
+
COLUMN_ID = "id",
|
|
4
|
+
COLUMN_CODE = "code",
|
|
5
|
+
COLUMN_CREATED_AT = "created_at",
|
|
6
|
+
COLUMN_UPDATED_AT = "updated_at",
|
|
7
|
+
COLUMN_SENDER_ID = "sender_id",
|
|
8
|
+
COLUMN_CONTACT_ID = "contact_id",
|
|
9
|
+
COLUMN_POLICY = "policy"
|
|
10
|
+
}
|
|
11
|
+
export declare type XcpInvitationType = {
|
|
12
|
+
[XcpInvitationFields.COLUMN_ID]: number;
|
|
13
|
+
[XcpInvitationFields.COLUMN_CODE]: string;
|
|
14
|
+
[XcpInvitationFields.COLUMN_CREATED_AT]: string;
|
|
15
|
+
[XcpInvitationFields.COLUMN_UPDATED_AT]: string;
|
|
16
|
+
[XcpInvitationFields.COLUMN_SENDER_ID]: number;
|
|
17
|
+
[XcpInvitationFields.COLUMN_CONTACT_ID]: number;
|
|
18
|
+
[XcpInvitationFields.COLUMN_POLICY]: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class XcpInvitation extends AbstractEntity<XcpInvitationType> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(xcpInvitationDataInput: XcpInvitationType);
|
|
23
|
+
get id(): number;
|
|
24
|
+
get code(): string;
|
|
25
|
+
get created_at(): string;
|
|
26
|
+
get updated_at(): string;
|
|
27
|
+
get sender_id(): number;
|
|
28
|
+
get contact_id(): number;
|
|
29
|
+
get policy(): string;
|
|
30
|
+
toJSON(): XcpInvitationType;
|
|
31
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _XcpInvitation_id, _XcpInvitation_code, _XcpInvitation_created_at, _XcpInvitation_updated_at, _XcpInvitation_sender_id, _XcpInvitation_contact_id, _XcpInvitation_policy;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.XcpInvitation = exports.XcpInvitationFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var XcpInvitationFields;
|
|
18
|
+
(function (XcpInvitationFields) {
|
|
19
|
+
XcpInvitationFields["COLUMN_ID"] = "id";
|
|
20
|
+
XcpInvitationFields["COLUMN_CODE"] = "code";
|
|
21
|
+
XcpInvitationFields["COLUMN_CREATED_AT"] = "created_at";
|
|
22
|
+
XcpInvitationFields["COLUMN_UPDATED_AT"] = "updated_at";
|
|
23
|
+
XcpInvitationFields["COLUMN_SENDER_ID"] = "sender_id";
|
|
24
|
+
XcpInvitationFields["COLUMN_CONTACT_ID"] = "contact_id";
|
|
25
|
+
XcpInvitationFields["COLUMN_POLICY"] = "policy";
|
|
26
|
+
})(XcpInvitationFields = exports.XcpInvitationFields || (exports.XcpInvitationFields = {}));
|
|
27
|
+
class XcpInvitation extends abstractEntity_1.AbstractEntity {
|
|
28
|
+
constructor(xcpInvitationDataInput) {
|
|
29
|
+
super(xcpInvitationDataInput);
|
|
30
|
+
_XcpInvitation_id.set(this, void 0);
|
|
31
|
+
_XcpInvitation_code.set(this, void 0);
|
|
32
|
+
_XcpInvitation_created_at.set(this, void 0);
|
|
33
|
+
_XcpInvitation_updated_at.set(this, void 0);
|
|
34
|
+
_XcpInvitation_sender_id.set(this, void 0);
|
|
35
|
+
_XcpInvitation_contact_id.set(this, void 0);
|
|
36
|
+
_XcpInvitation_policy.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _XcpInvitation_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_ID], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _XcpInvitation_code, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CODE], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _XcpInvitation_created_at, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CREATED_AT], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _XcpInvitation_updated_at, xcpInvitationDataInput[XcpInvitationFields.COLUMN_UPDATED_AT], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _XcpInvitation_sender_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_SENDER_ID], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _XcpInvitation_contact_id, xcpInvitationDataInput[XcpInvitationFields.COLUMN_CONTACT_ID], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _XcpInvitation_policy, xcpInvitationDataInput[XcpInvitationFields.COLUMN_POLICY], "f");
|
|
44
|
+
}
|
|
45
|
+
get id() {
|
|
46
|
+
return __classPrivateFieldGet(this, _XcpInvitation_id, "f");
|
|
47
|
+
}
|
|
48
|
+
get code() {
|
|
49
|
+
return __classPrivateFieldGet(this, _XcpInvitation_code, "f");
|
|
50
|
+
}
|
|
51
|
+
get created_at() {
|
|
52
|
+
return __classPrivateFieldGet(this, _XcpInvitation_created_at, "f");
|
|
53
|
+
}
|
|
54
|
+
get updated_at() {
|
|
55
|
+
return __classPrivateFieldGet(this, _XcpInvitation_updated_at, "f");
|
|
56
|
+
}
|
|
57
|
+
get sender_id() {
|
|
58
|
+
return __classPrivateFieldGet(this, _XcpInvitation_sender_id, "f");
|
|
59
|
+
}
|
|
60
|
+
get contact_id() {
|
|
61
|
+
return __classPrivateFieldGet(this, _XcpInvitation_contact_id, "f");
|
|
62
|
+
}
|
|
63
|
+
get policy() {
|
|
64
|
+
return __classPrivateFieldGet(this, _XcpInvitation_policy, "f");
|
|
65
|
+
}
|
|
66
|
+
toJSON() {
|
|
67
|
+
return {
|
|
68
|
+
[XcpInvitationFields.COLUMN_ID]: this.id,
|
|
69
|
+
[XcpInvitationFields.COLUMN_CODE]: this.code,
|
|
70
|
+
[XcpInvitationFields.COLUMN_CREATED_AT]: this.created_at,
|
|
71
|
+
[XcpInvitationFields.COLUMN_UPDATED_AT]: this.updated_at,
|
|
72
|
+
[XcpInvitationFields.COLUMN_SENDER_ID]: this.sender_id,
|
|
73
|
+
[XcpInvitationFields.COLUMN_CONTACT_ID]: this.contact_id,
|
|
74
|
+
[XcpInvitationFields.COLUMN_POLICY]: this.policy,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.XcpInvitation = XcpInvitation;
|
|
79
|
+
_XcpInvitation_id = new WeakMap(), _XcpInvitation_code = new WeakMap(), _XcpInvitation_created_at = new WeakMap(), _XcpInvitation_updated_at = new WeakMap(), _XcpInvitation_sender_id = new WeakMap(), _XcpInvitation_contact_id = new WeakMap(), _XcpInvitation_policy = new WeakMap();
|
|
80
|
+
//# sourceMappingURL=xcpInvitation.js.map
|
package/package.json
CHANGED