@arrowsphere/api-client 3.248.2 → 3.250.0-rc-cpe-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 +17 -2
- package/build/licenses/licensesClient.d.ts +5 -2
- package/build/licenses/licensesClient.js +2 -2
- package/build/partner/entities/CustomField/CustomFieldListResponse.d.ts +9 -0
- package/build/partner/entities/CustomField/CustomFieldListResponse.js +34 -0
- package/build/partner/entities/CustomField/CustomFieldResponse.d.ts +31 -0
- package/build/partner/entities/CustomField/CustomFieldResponse.js +80 -0
- package/build/partner/partnerClient.d.ts +7 -0
- package/build/partner/partnerClient.js +18 -0
- package/build/partner/types/createCustomField.d.ts +5 -0
- package/build/partner/types/createCustomField.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,14 +3,29 @@
|
|
|
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.249.2] - 2026.03.09
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fix version package
|
|
10
|
+
|
|
11
|
+
## [3.249.1] - 2026.03.09
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- [Partner] Fix Unit test
|
|
15
|
+
|
|
16
|
+
## [3.249.0] - 2026.03.05
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- [Partner] Add create, retrieve list and delete for customFields
|
|
20
|
+
|
|
6
21
|
## [3.248.2] - 2026.03.04
|
|
7
22
|
|
|
8
|
-
###
|
|
23
|
+
### Fixed
|
|
9
24
|
- [Cart] Fix type of the add and update cart endpoint payload
|
|
10
25
|
|
|
11
26
|
## [3.248.1] - 2026.02.26
|
|
12
27
|
|
|
13
|
-
###
|
|
28
|
+
### Fixed
|
|
14
29
|
- [Contact] Fix type of the get and patch contact endpoint payload
|
|
15
30
|
|
|
16
31
|
## [3.248.0] - 2026.02.26
|
|
@@ -245,7 +245,10 @@ export declare type PostUpgrade = {
|
|
|
245
245
|
billingCycle: number;
|
|
246
246
|
term: number;
|
|
247
247
|
quantity: number;
|
|
248
|
-
};
|
|
248
|
+
} & ExtraInformationType;
|
|
249
|
+
export declare type PostUpgradeToExisting = {
|
|
250
|
+
quantity: number;
|
|
251
|
+
} & ExtraInformationType;
|
|
249
252
|
export declare enum SaveBillingCommentsInputFields {
|
|
250
253
|
COLUMN_COMMENT_ONE = "comment1",
|
|
251
254
|
COLUMN_COMMENT_TWO = "comment2"
|
|
@@ -434,7 +437,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
434
437
|
reactivateAutoRenew(licenseReference: string, payload?: PutReactivateAutoRenew, parameters?: Parameters): Promise<void>;
|
|
435
438
|
activeRenewExtendedServiceTerm(licenseReference: string, payload?: PutActivateRenewEst, parameters?: Parameters): Promise<void>;
|
|
436
439
|
upgrade(licenseReference: string, payload: PostUpgrade, parameters?: Parameters): Promise<GetResult<UpgradeResult>>;
|
|
437
|
-
upgradeToExisting(licenseReference: string, targetLicenseReference: string,
|
|
440
|
+
upgradeToExisting(licenseReference: string, targetLicenseReference: string, payload: PostUpgradeToExisting, parameters?: Parameters): Promise<void>;
|
|
438
441
|
saveBillingComments(licenseReference: string, payload: SaveBillingCommentsInputType, parameters?: Parameters): Promise<void>;
|
|
439
442
|
getConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
440
443
|
getExistingConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
@@ -460,9 +460,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
460
460
|
this.path = `/${licenseReference}${this.UPGRADE_PATH}`;
|
|
461
461
|
return new getResult_1.GetResult(upgradeResult_1.UpgradeResult, await this.post(payload, parameters));
|
|
462
462
|
}
|
|
463
|
-
async upgradeToExisting(licenseReference, targetLicenseReference,
|
|
463
|
+
async upgradeToExisting(licenseReference, targetLicenseReference, payload, parameters = {}) {
|
|
464
464
|
this.path = `/${licenseReference}${this.UPGRADE_PATH}/${targetLicenseReference}`;
|
|
465
|
-
await this.post(
|
|
465
|
+
await this.post(payload, parameters);
|
|
466
466
|
}
|
|
467
467
|
async saveBillingComments(licenseReference, payload, parameters = {}) {
|
|
468
468
|
this.path = `/${licenseReference}${this.SAVE_BILLING_COMMENTS_PATH}`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
import { CustomFieldResponse, CustomFieldType } from './CustomFieldResponse';
|
|
3
|
+
export declare type CustomFieldListType = CustomFieldType[];
|
|
4
|
+
export declare class CustomFieldListResponse extends AbstractEntity<CustomFieldListType> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(dataInput: CustomFieldListType);
|
|
7
|
+
get customFieldList(): CustomFieldResponse[];
|
|
8
|
+
toJSON(): CustomFieldListType;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 _CustomFieldListResponse_customFieldList;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CustomFieldListResponse = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
const CustomFieldResponse_1 = require("./CustomFieldResponse");
|
|
18
|
+
class CustomFieldListResponse extends abstractEntity_1.AbstractEntity {
|
|
19
|
+
constructor(dataInput) {
|
|
20
|
+
var _a;
|
|
21
|
+
super(dataInput);
|
|
22
|
+
_CustomFieldListResponse_customFieldList.set(this, void 0);
|
|
23
|
+
__classPrivateFieldSet(this, _CustomFieldListResponse_customFieldList, (_a = dataInput === null || dataInput === void 0 ? void 0 : dataInput.map((result) => new CustomFieldResponse_1.CustomFieldResponse(result))) !== null && _a !== void 0 ? _a : [], "f");
|
|
24
|
+
}
|
|
25
|
+
get customFieldList() {
|
|
26
|
+
return __classPrivateFieldGet(this, _CustomFieldListResponse_customFieldList, "f");
|
|
27
|
+
}
|
|
28
|
+
toJSON() {
|
|
29
|
+
return this.customFieldList.map((result) => result.toJSON());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.CustomFieldListResponse = CustomFieldListResponse;
|
|
33
|
+
_CustomFieldListResponse_customFieldList = new WeakMap();
|
|
34
|
+
//# sourceMappingURL=CustomFieldListResponse.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CustomFieldFields {
|
|
3
|
+
COLUMN_ID = "id",
|
|
4
|
+
COLUMN_LABEL = "label",
|
|
5
|
+
COLUMN_IS_ACTIVE = "isActive",
|
|
6
|
+
COLUMN_IS_USED = "isUsed",
|
|
7
|
+
COLUMN_ENTITY = "entity",
|
|
8
|
+
COLUMN_CREATED_AT = "createdAt",
|
|
9
|
+
COLUMN_CREATED_BY = "createdBy"
|
|
10
|
+
}
|
|
11
|
+
export declare type CustomFieldType = {
|
|
12
|
+
[CustomFieldFields.COLUMN_ID]: number;
|
|
13
|
+
[CustomFieldFields.COLUMN_LABEL]: string;
|
|
14
|
+
[CustomFieldFields.COLUMN_IS_ACTIVE]: boolean;
|
|
15
|
+
[CustomFieldFields.COLUMN_IS_USED]: boolean;
|
|
16
|
+
[CustomFieldFields.COLUMN_ENTITY]: string;
|
|
17
|
+
[CustomFieldFields.COLUMN_CREATED_AT]: string;
|
|
18
|
+
[CustomFieldFields.COLUMN_CREATED_BY]: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class CustomFieldResponse extends AbstractEntity<CustomFieldType> {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(customFieldInput: CustomFieldType);
|
|
23
|
+
get id(): number;
|
|
24
|
+
get label(): string;
|
|
25
|
+
get isActive(): boolean;
|
|
26
|
+
get isUsed(): boolean;
|
|
27
|
+
get createdAt(): string;
|
|
28
|
+
get createdBy(): string;
|
|
29
|
+
get entity(): string;
|
|
30
|
+
toJSON(): CustomFieldType;
|
|
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 _CustomFieldResponse_id, _CustomFieldResponse_label, _CustomFieldResponse_entity, _CustomFieldResponse_isActive, _CustomFieldResponse_isUsed, _CustomFieldResponse_createdAt, _CustomFieldResponse_createdBy;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CustomFieldResponse = exports.CustomFieldFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CustomFieldFields;
|
|
18
|
+
(function (CustomFieldFields) {
|
|
19
|
+
CustomFieldFields["COLUMN_ID"] = "id";
|
|
20
|
+
CustomFieldFields["COLUMN_LABEL"] = "label";
|
|
21
|
+
CustomFieldFields["COLUMN_IS_ACTIVE"] = "isActive";
|
|
22
|
+
CustomFieldFields["COLUMN_IS_USED"] = "isUsed";
|
|
23
|
+
CustomFieldFields["COLUMN_ENTITY"] = "entity";
|
|
24
|
+
CustomFieldFields["COLUMN_CREATED_AT"] = "createdAt";
|
|
25
|
+
CustomFieldFields["COLUMN_CREATED_BY"] = "createdBy";
|
|
26
|
+
})(CustomFieldFields = exports.CustomFieldFields || (exports.CustomFieldFields = {}));
|
|
27
|
+
class CustomFieldResponse extends abstractEntity_1.AbstractEntity {
|
|
28
|
+
constructor(customFieldInput) {
|
|
29
|
+
super(customFieldInput);
|
|
30
|
+
_CustomFieldResponse_id.set(this, void 0);
|
|
31
|
+
_CustomFieldResponse_label.set(this, void 0);
|
|
32
|
+
_CustomFieldResponse_entity.set(this, void 0);
|
|
33
|
+
_CustomFieldResponse_isActive.set(this, void 0);
|
|
34
|
+
_CustomFieldResponse_isUsed.set(this, void 0);
|
|
35
|
+
_CustomFieldResponse_createdAt.set(this, void 0);
|
|
36
|
+
_CustomFieldResponse_createdBy.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_id, customFieldInput[CustomFieldFields.COLUMN_ID], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_label, customFieldInput[CustomFieldFields.COLUMN_LABEL], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_entity, customFieldInput[CustomFieldFields.COLUMN_ENTITY], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_isActive, customFieldInput[CustomFieldFields.COLUMN_IS_ACTIVE], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_isUsed, customFieldInput[CustomFieldFields.COLUMN_IS_USED], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_createdAt, customFieldInput[CustomFieldFields.COLUMN_CREATED_AT], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _CustomFieldResponse_createdBy, customFieldInput[CustomFieldFields.COLUMN_CREATED_BY], "f");
|
|
44
|
+
}
|
|
45
|
+
get id() {
|
|
46
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_id, "f");
|
|
47
|
+
}
|
|
48
|
+
get label() {
|
|
49
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_label, "f");
|
|
50
|
+
}
|
|
51
|
+
get isActive() {
|
|
52
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_isActive, "f");
|
|
53
|
+
}
|
|
54
|
+
get isUsed() {
|
|
55
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_isUsed, "f");
|
|
56
|
+
}
|
|
57
|
+
get createdAt() {
|
|
58
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_createdAt, "f");
|
|
59
|
+
}
|
|
60
|
+
get createdBy() {
|
|
61
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_createdBy, "f");
|
|
62
|
+
}
|
|
63
|
+
get entity() {
|
|
64
|
+
return __classPrivateFieldGet(this, _CustomFieldResponse_entity, "f");
|
|
65
|
+
}
|
|
66
|
+
toJSON() {
|
|
67
|
+
return {
|
|
68
|
+
[CustomFieldFields.COLUMN_ID]: this.id,
|
|
69
|
+
[CustomFieldFields.COLUMN_LABEL]: this.label,
|
|
70
|
+
[CustomFieldFields.COLUMN_ENTITY]: this.entity,
|
|
71
|
+
[CustomFieldFields.COLUMN_IS_ACTIVE]: this.isActive,
|
|
72
|
+
[CustomFieldFields.COLUMN_IS_USED]: this.isUsed,
|
|
73
|
+
[CustomFieldFields.COLUMN_CREATED_AT]: this.createdAt,
|
|
74
|
+
[CustomFieldFields.COLUMN_CREATED_BY]: this.createdBy,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.CustomFieldResponse = CustomFieldResponse;
|
|
79
|
+
_CustomFieldResponse_id = new WeakMap(), _CustomFieldResponse_label = new WeakMap(), _CustomFieldResponse_entity = new WeakMap(), _CustomFieldResponse_isActive = new WeakMap(), _CustomFieldResponse_isUsed = new WeakMap(), _CustomFieldResponse_createdAt = new WeakMap(), _CustomFieldResponse_createdBy = new WeakMap();
|
|
80
|
+
//# sourceMappingURL=CustomFieldResponse.js.map
|
|
@@ -6,6 +6,9 @@ import { GetUserApiKeysResult } from './types/getUserApiKeysResult';
|
|
|
6
6
|
import { GetUserImpersonationsResult } from './types/getUserImpersonationsResult';
|
|
7
7
|
import { UpdateScopeUserPayload } from './types/updateUserTypes';
|
|
8
8
|
import { DataPartner } from './entities/dataPartner';
|
|
9
|
+
import { createCustomFieldType } from './types/createCustomField';
|
|
10
|
+
import { CustomFieldResponse } from './entities/CustomField/CustomFieldResponse';
|
|
11
|
+
import { CustomFieldListResponse } from './entities/CustomField/CustomFieldListResponse';
|
|
9
12
|
export declare enum PatchUserPayloadFields {
|
|
10
13
|
COLUMN_FIRSTNAME = "firstname",
|
|
11
14
|
COLUMN_LASTNAME = "lastname",
|
|
@@ -147,4 +150,8 @@ export declare class PartnerClient extends AbstractRestfulClient {
|
|
|
147
150
|
getUserApiKeys(filters?: GetUserApiKeysFilters, parameters?: Parameters): Promise<GetResult<GetUserApiKeysResult>>;
|
|
148
151
|
deleteUserApiKey(partnerReference: string, userReference: string, apikeyReference: string, parameters?: Parameters): Promise<void>;
|
|
149
152
|
createUserApiKey(partnerReference: string, userReference: string, payload: CreateUserApiKeyPayload, parameters?: Parameters): Promise<GetResult<CreateUserApiKeyResult>>;
|
|
153
|
+
postCustomField(payload: createCustomFieldType, parameters?: Parameters): Promise<GetResult<CustomFieldResponse>>;
|
|
154
|
+
getCustomFieldList(parameters?: Parameters): Promise<GetResult<CustomFieldListResponse>>;
|
|
155
|
+
patchCustomField(customFieldId: number, isActive: boolean): Promise<GetResult<CustomFieldResponse>>;
|
|
156
|
+
deleteCustomField(customFieldId: number, parameters?: Parameters): Promise<void>;
|
|
150
157
|
}
|
|
@@ -8,6 +8,8 @@ const getUserApiKeysResult_1 = require("./types/getUserApiKeysResult");
|
|
|
8
8
|
const getUserImpersonationsResult_1 = require("./types/getUserImpersonationsResult");
|
|
9
9
|
const updateUserTypes_1 = require("./types/updateUserTypes");
|
|
10
10
|
const dataPartner_1 = require("./entities/dataPartner");
|
|
11
|
+
const CustomFieldResponse_1 = require("./entities/CustomField/CustomFieldResponse");
|
|
12
|
+
const CustomFieldListResponse_1 = require("./entities/CustomField/CustomFieldListResponse");
|
|
11
13
|
var PatchUserPayloadFields;
|
|
12
14
|
(function (PatchUserPayloadFields) {
|
|
13
15
|
PatchUserPayloadFields["COLUMN_FIRSTNAME"] = "firstname";
|
|
@@ -145,6 +147,22 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
145
147
|
this.path = `/${partnerReference}/users/${userReference}/apikeys`;
|
|
146
148
|
return new getResult_1.GetResult(createUserApiKeyResult_1.CreateUserApiKeyResult, await this.post(payload, parameters));
|
|
147
149
|
}
|
|
150
|
+
async postCustomField(payload, parameters = {}) {
|
|
151
|
+
this.path = `/customField`;
|
|
152
|
+
return new getResult_1.GetResult(CustomFieldResponse_1.CustomFieldResponse, await this.post(payload, parameters));
|
|
153
|
+
}
|
|
154
|
+
async getCustomFieldList(parameters = {}) {
|
|
155
|
+
this.path = `/customField`;
|
|
156
|
+
return new getResult_1.GetResult(CustomFieldListResponse_1.CustomFieldListResponse, await this.get(parameters));
|
|
157
|
+
}
|
|
158
|
+
async patchCustomField(customFieldId, isActive) {
|
|
159
|
+
this.path = `/customField/${customFieldId}`;
|
|
160
|
+
return new getResult_1.GetResult(CustomFieldResponse_1.CustomFieldResponse, await this.patch({ isActive }));
|
|
161
|
+
}
|
|
162
|
+
async deleteCustomField(customFieldId, parameters = {}) {
|
|
163
|
+
this.path = `/customField/${customFieldId}`;
|
|
164
|
+
return this.delete(parameters);
|
|
165
|
+
}
|
|
148
166
|
}
|
|
149
167
|
exports.PartnerClient = PartnerClient;
|
|
150
168
|
//# sourceMappingURL=partnerClient.js.map
|
package/package.json
CHANGED