@arrowsphere/api-client 3.101.0 → 3.102.0-rc.lth.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 +9 -0
- package/build/customers/entities/customers/customerContact/customerContact.d.ts +7 -3
- package/build/customers/entities/customers/customerContact/customerContact.js +14 -2
- package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.d.ts +16 -0
- package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.js +45 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
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
|
+
## [3.101.0] - 2024.03.19
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- [customer/contact] add organization object in customer contact payload
|
|
10
|
+
|
|
11
|
+
### Updated
|
|
12
|
+
|
|
13
|
+
- Add sommes configs for IDE
|
|
5
14
|
|
|
6
15
|
## [3.101.0] - 2024.03.19
|
|
7
16
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
|
|
2
|
+
import { CustomerContactXcpInvitation, CustomerContactXcpInvitationType } from './customerContactXcpInvitation';
|
|
3
|
+
import { CustomerContactOrganizationUnit, CustomerContactOrganizationUnitType } from './customerContactOrganizationUnit';
|
|
3
4
|
export declare type CustomerContactRoleType = CustomerContactRoleEnum | string;
|
|
4
5
|
export declare enum CustomerContactRoleEnum {
|
|
5
6
|
PRIMARY = "primary",
|
|
@@ -26,7 +27,8 @@ export declare enum CustomerContactFields {
|
|
|
26
27
|
COLUMN_ROLE = "role",
|
|
27
28
|
COLUMN_IS_ACTIVE = "isActive",
|
|
28
29
|
COLUMN_XCP_INVITATION = "xcpInvitation",
|
|
29
|
-
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId"
|
|
30
|
+
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
|
|
31
|
+
COLUMN_ORGANIZATION_UNITS = "organizationUnits"
|
|
30
32
|
}
|
|
31
33
|
export declare type CustomerContactType = {
|
|
32
34
|
[CustomerContactFields.COLUMN_REFERENCE]: string;
|
|
@@ -40,6 +42,7 @@ export declare type CustomerContactType = {
|
|
|
40
42
|
[CustomerContactFields.COLUMN_IS_ACTIVE]: boolean;
|
|
41
43
|
[CustomerContactFields.COLUMN_XCP_INVITATION]?: CustomerContactXcpInvitationType;
|
|
42
44
|
[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
45
|
+
[CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: CustomerContactOrganizationUnitType[] | [];
|
|
43
46
|
};
|
|
44
47
|
export declare class CustomerContact extends AbstractEntity<CustomerContactType> {
|
|
45
48
|
#private;
|
|
@@ -53,7 +56,8 @@ export declare class CustomerContact extends AbstractEntity<CustomerContactType>
|
|
|
53
56
|
get type(): string;
|
|
54
57
|
get role(): string;
|
|
55
58
|
get isActive(): boolean;
|
|
56
|
-
get xcpInvitation():
|
|
59
|
+
get xcpInvitation(): CustomerContactXcpInvitation | undefined;
|
|
57
60
|
get organizationUnitId(): number | undefined;
|
|
61
|
+
get organizationUnits(): CustomerContactOrganizationUnit[] | [];
|
|
58
62
|
toJSON(): CustomerContactType;
|
|
59
63
|
}
|
|
@@ -10,11 +10,12 @@ 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, _CustomerContact_organizationUnitId, _CustomerContact_organizationUnits;
|
|
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");
|
|
17
17
|
const customerContactXcpInvitation_1 = require("./customerContactXcpInvitation");
|
|
18
|
+
const customerContactOrganizationUnit_1 = require("./customerContactOrganizationUnit");
|
|
18
19
|
var CustomerContactRoleEnum;
|
|
19
20
|
(function (CustomerContactRoleEnum) {
|
|
20
21
|
CustomerContactRoleEnum["PRIMARY"] = "primary";
|
|
@@ -43,6 +44,7 @@ var CustomerContactFields;
|
|
|
43
44
|
CustomerContactFields["COLUMN_IS_ACTIVE"] = "isActive";
|
|
44
45
|
CustomerContactFields["COLUMN_XCP_INVITATION"] = "xcpInvitation";
|
|
45
46
|
CustomerContactFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
|
|
47
|
+
CustomerContactFields["COLUMN_ORGANIZATION_UNITS"] = "organizationUnits";
|
|
46
48
|
})(CustomerContactFields = exports.CustomerContactFields || (exports.CustomerContactFields = {}));
|
|
47
49
|
class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
48
50
|
constructor(getCustomerContactDataInput) {
|
|
@@ -58,6 +60,7 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
58
60
|
_CustomerContact_isActive.set(this, void 0);
|
|
59
61
|
_CustomerContact_xcpInvitation.set(this, void 0);
|
|
60
62
|
_CustomerContact_organizationUnitId.set(this, void 0);
|
|
63
|
+
_CustomerContact_organizationUnits.set(this, void 0);
|
|
61
64
|
__classPrivateFieldSet(this, _CustomerContact_reference, getCustomerContactDataInput[CustomerContactFields.COLUMN_REFERENCE], "f");
|
|
62
65
|
__classPrivateFieldSet(this, _CustomerContact_firstName, getCustomerContactDataInput[CustomerContactFields.COLUMN_FIRST_NAME], "f");
|
|
63
66
|
__classPrivateFieldSet(this, _CustomerContact_lastName, getCustomerContactDataInput[CustomerContactFields.COLUMN_LAST_NAME], "f");
|
|
@@ -71,6 +74,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
71
74
|
? new customerContactXcpInvitation_1.CustomerContactXcpInvitation(getCustomerContactDataInput[CustomerContactFields.COLUMN_XCP_INVITATION])
|
|
72
75
|
: undefined, "f");
|
|
73
76
|
__classPrivateFieldSet(this, _CustomerContact_organizationUnitId, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
|
|
77
|
+
__classPrivateFieldSet(this, _CustomerContact_organizationUnits, getCustomerContactDataInput[CustomerContactFields.COLUMN_ORGANIZATION_UNITS].map((organizationUnit) => {
|
|
78
|
+
return new customerContactOrganizationUnit_1.CustomerContactOrganizationUnit(organizationUnit);
|
|
79
|
+
}), "f");
|
|
74
80
|
}
|
|
75
81
|
get reference() {
|
|
76
82
|
return __classPrivateFieldGet(this, _CustomerContact_reference, "f");
|
|
@@ -105,6 +111,9 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
105
111
|
get organizationUnitId() {
|
|
106
112
|
return __classPrivateFieldGet(this, _CustomerContact_organizationUnitId, "f");
|
|
107
113
|
}
|
|
114
|
+
get organizationUnits() {
|
|
115
|
+
return __classPrivateFieldGet(this, _CustomerContact_organizationUnits, "f");
|
|
116
|
+
}
|
|
108
117
|
toJSON() {
|
|
109
118
|
return {
|
|
110
119
|
[CustomerContactFields.COLUMN_REFERENCE]: this.reference,
|
|
@@ -119,9 +128,12 @@ class CustomerContact extends abstractEntity_1.AbstractEntity {
|
|
|
119
128
|
[CustomerContactFields.COLUMN_XCP_INVITATION]: this.xcpInvitation,
|
|
120
129
|
[CustomerContactFields.COLUMN_ORGANIZATION_UNIT_ID]: this
|
|
121
130
|
.organizationUnitId,
|
|
131
|
+
[CustomerContactFields.COLUMN_ORGANIZATION_UNITS]: this.organizationUnits.map((organizationUnit) => {
|
|
132
|
+
return organizationUnit.toJSON();
|
|
133
|
+
}),
|
|
122
134
|
};
|
|
123
135
|
}
|
|
124
136
|
}
|
|
125
137
|
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();
|
|
138
|
+
_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(), _CustomerContact_organizationUnits = new WeakMap();
|
|
127
139
|
//# sourceMappingURL=customerContact.js.map
|
package/build/customers/entities/customers/customerContact/customerContactOrganizationUnit.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum CustomerContactOrganizationUnitFields {
|
|
3
|
+
COLUMN_ID = "id",
|
|
4
|
+
COLUMN_NAME = "name"
|
|
5
|
+
}
|
|
6
|
+
export declare type CustomerContactOrganizationUnitType = {
|
|
7
|
+
[CustomerContactOrganizationUnitFields.COLUMN_ID]: number;
|
|
8
|
+
[CustomerContactOrganizationUnitFields.COLUMN_NAME]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class CustomerContactOrganizationUnit extends AbstractEntity<CustomerContactOrganizationUnitType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(getCustomerContactOrganizationUnitDataInput: CustomerContactOrganizationUnitType);
|
|
13
|
+
get id(): number;
|
|
14
|
+
get name(): string;
|
|
15
|
+
toJSON(): CustomerContactOrganizationUnitType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _CustomerContactOrganizationUnit_id, _CustomerContactOrganizationUnit_name;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CustomerContactOrganizationUnit = exports.CustomerContactOrganizationUnitFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var CustomerContactOrganizationUnitFields;
|
|
18
|
+
(function (CustomerContactOrganizationUnitFields) {
|
|
19
|
+
CustomerContactOrganizationUnitFields["COLUMN_ID"] = "id";
|
|
20
|
+
CustomerContactOrganizationUnitFields["COLUMN_NAME"] = "name";
|
|
21
|
+
})(CustomerContactOrganizationUnitFields = exports.CustomerContactOrganizationUnitFields || (exports.CustomerContactOrganizationUnitFields = {}));
|
|
22
|
+
class CustomerContactOrganizationUnit extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(getCustomerContactOrganizationUnitDataInput) {
|
|
24
|
+
super(getCustomerContactOrganizationUnitDataInput);
|
|
25
|
+
_CustomerContactOrganizationUnit_id.set(this, void 0);
|
|
26
|
+
_CustomerContactOrganizationUnit_name.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _CustomerContactOrganizationUnit_id, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_ID], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _CustomerContactOrganizationUnit_name, getCustomerContactOrganizationUnitDataInput[CustomerContactOrganizationUnitFields.COLUMN_NAME], "f");
|
|
29
|
+
}
|
|
30
|
+
get id() {
|
|
31
|
+
return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_id, "f");
|
|
32
|
+
}
|
|
33
|
+
get name() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CustomerContactOrganizationUnit_name, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[CustomerContactOrganizationUnitFields.COLUMN_ID]: this.id,
|
|
39
|
+
[CustomerContactOrganizationUnitFields.COLUMN_NAME]: this.name,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CustomerContactOrganizationUnit = CustomerContactOrganizationUnit;
|
|
44
|
+
_CustomerContactOrganizationUnit_id = new WeakMap(), _CustomerContactOrganizationUnit_name = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=customerContactOrganizationUnit.js.map
|
package/package.json
CHANGED