@arrowsphere/api-client 3.355.0 → 3.356.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 +10 -0
- package/build/axiosSingleton.js +17 -1
- package/build/customers/customersClient.d.ts +8 -0
- package/build/customers/customersClient.js +10 -1
- package/build/customers/entities/dataInvitationActivate.d.ts +13 -0
- package/build/customers/entities/dataInvitationActivate.js +38 -0
- package/build/customers/index.d.ts +1 -0
- package/build/customers/index.js +1 -0
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.356.0] - 2026.03.30
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [Customer] Add endpoint to active invitation
|
|
10
|
+
|
|
11
|
+
## [3.355.0] - 2026.03.30
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- [License] Add endpoint late renewal
|
|
15
|
+
|
|
6
16
|
## [3.354.0] - 2026.03.30
|
|
7
17
|
|
|
8
18
|
### Added
|
package/build/axiosSingleton.js
CHANGED
|
@@ -104,7 +104,9 @@ class AxiosSingleton {
|
|
|
104
104
|
if (seen.has(obj))
|
|
105
105
|
return seen.get(obj);
|
|
106
106
|
// Crée une copie de l'objet pour éviter de le modifier directement
|
|
107
|
-
const sanitizedCopy = Array.isArray(obj)
|
|
107
|
+
const sanitizedCopy = Array.isArray(obj)
|
|
108
|
+
? []
|
|
109
|
+
: {};
|
|
108
110
|
// Stocke l'objet dans WeakMap avant la récursion
|
|
109
111
|
seen.set(obj, sanitizedCopy);
|
|
110
112
|
for (const [key, value] of Object.entries(obj)) {
|
|
@@ -128,6 +130,20 @@ class AxiosSingleton {
|
|
|
128
130
|
else if (typeof value === 'object' && value !== null) {
|
|
129
131
|
sanitizedCopy[key] = AxiosSingleton.sanitizeObject(value, fieldsToObfuscate, seen); // 🔄 Récursion avec WeakMap
|
|
130
132
|
}
|
|
133
|
+
else if (typeof value === 'string') {
|
|
134
|
+
try {
|
|
135
|
+
const parsed = JSON.parse(value);
|
|
136
|
+
if (parsed && typeof parsed === 'object') {
|
|
137
|
+
sanitizedCopy[key] = JSON.stringify(AxiosSingleton.sanitizeObject(parsed, fieldsToObfuscate, seen));
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
sanitizedCopy[key] = value;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
catch (_a) {
|
|
144
|
+
sanitizedCopy[key] = value;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
131
147
|
else {
|
|
132
148
|
sanitizedCopy[key] = value;
|
|
133
149
|
}
|
|
@@ -11,6 +11,7 @@ import { ContactFields } from './entities/customers/contact/contact';
|
|
|
11
11
|
import { CustomerProvision } from './entities/customerProvision';
|
|
12
12
|
import { CustomerCredentials } from './entities/customerCredentials';
|
|
13
13
|
import { CustomerAgreements } from './entities/customers/agreements/customerAgreements';
|
|
14
|
+
import { DataInvitationActivate } from './entities/dataInvitationActivate';
|
|
14
15
|
export declare enum CustomerMigrationAttributeFields {
|
|
15
16
|
NAME = "name",
|
|
16
17
|
VALUE = "value"
|
|
@@ -106,6 +107,12 @@ export declare type PostCustomerInvitation = {
|
|
|
106
107
|
[PostCustomerInvitationFields.COLUMN_CONTACT_ID]: number;
|
|
107
108
|
[PostCustomerInvitationFields.COLUMN_POLICY]: string;
|
|
108
109
|
};
|
|
110
|
+
export declare enum PostCustomerInvitationActivateFields {
|
|
111
|
+
COLUMN_PASSWORD = "password"
|
|
112
|
+
}
|
|
113
|
+
export declare type PostCustomerInvitationActivate = {
|
|
114
|
+
[PostCustomerInvitationActivateFields.COLUMN_PASSWORD]: string;
|
|
115
|
+
};
|
|
109
116
|
export declare type APIResponseResourceCreated = {
|
|
110
117
|
status: number;
|
|
111
118
|
data: {
|
|
@@ -181,4 +188,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
181
188
|
getCheckMicrosoftCustomerAgreement(parameters?: {
|
|
182
189
|
customerReference?: string;
|
|
183
190
|
} & Parameters): Promise<GetResult<CustomerAgreements>>;
|
|
191
|
+
postCustomerInvitationActivate(code: string, payload: PostCustomerInvitationActivate, parameters?: Parameters): Promise<GetResult<DataInvitationActivate>>;
|
|
184
192
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersClient = exports.UploadAttachmentInputFields = exports.PostCustomerInvitationFields = exports.CustomersFilterInputFields = exports.ExportCustomersInputFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
|
|
3
|
+
exports.CustomersClient = exports.UploadAttachmentInputFields = exports.PostCustomerInvitationActivateFields = exports.PostCustomerInvitationFields = exports.CustomersFilterInputFields = exports.ExportCustomersInputFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const dataCustomers_1 = require("./entities/dataCustomers");
|
|
@@ -14,6 +14,7 @@ const contact_1 = require("./entities/customers/contact/contact");
|
|
|
14
14
|
const customerProvision_1 = require("./entities/customerProvision");
|
|
15
15
|
const customerCredentials_1 = require("./entities/customerCredentials");
|
|
16
16
|
const customerAgreements_1 = require("./entities/customers/agreements/customerAgreements");
|
|
17
|
+
const dataInvitationActivate_1 = require("./entities/dataInvitationActivate");
|
|
17
18
|
var CustomerMigrationAttributeFields;
|
|
18
19
|
(function (CustomerMigrationAttributeFields) {
|
|
19
20
|
CustomerMigrationAttributeFields["NAME"] = "name";
|
|
@@ -58,6 +59,10 @@ var PostCustomerInvitationFields;
|
|
|
58
59
|
PostCustomerInvitationFields["COLUMN_CONTACT_ID"] = "contactId";
|
|
59
60
|
PostCustomerInvitationFields["COLUMN_POLICY"] = "policy";
|
|
60
61
|
})(PostCustomerInvitationFields = exports.PostCustomerInvitationFields || (exports.PostCustomerInvitationFields = {}));
|
|
62
|
+
var PostCustomerInvitationActivateFields;
|
|
63
|
+
(function (PostCustomerInvitationActivateFields) {
|
|
64
|
+
PostCustomerInvitationActivateFields["COLUMN_PASSWORD"] = "password";
|
|
65
|
+
})(PostCustomerInvitationActivateFields = exports.PostCustomerInvitationActivateFields || (exports.PostCustomerInvitationActivateFields = {}));
|
|
61
66
|
var UploadAttachmentInputFields;
|
|
62
67
|
(function (UploadAttachmentInputFields) {
|
|
63
68
|
UploadAttachmentInputFields["COLUMN_FILE_ENCODED"] = "fileEncoded";
|
|
@@ -167,6 +172,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
167
172
|
this.path = '/checkMicrosoftCustomerAgreement';
|
|
168
173
|
return new getResult_1.GetResult(customerAgreements_1.CustomerAgreements, await this.get(parameters));
|
|
169
174
|
}
|
|
175
|
+
async postCustomerInvitationActivate(code, payload, parameters = {}) {
|
|
176
|
+
this.path = `/invitations/${code}/activate`;
|
|
177
|
+
return new getResult_1.GetResult(dataInvitationActivate_1.DataInvitationActivate, await this.post(payload, parameters));
|
|
178
|
+
}
|
|
170
179
|
}
|
|
171
180
|
exports.CustomersClient = CustomersClient;
|
|
172
181
|
//# sourceMappingURL=customersClient.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum DataInvitationActivateFields {
|
|
3
|
+
COLUMN_USERNAME = "username"
|
|
4
|
+
}
|
|
5
|
+
export declare type DataInvitationActivateType = {
|
|
6
|
+
[DataInvitationActivateFields.COLUMN_USERNAME]: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class DataInvitationActivate extends AbstractEntity<DataInvitationActivateType> {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(getDataInvitationActivateInput: DataInvitationActivateType);
|
|
11
|
+
get username(): string;
|
|
12
|
+
toJSON(): DataInvitationActivateType;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 _DataInvitationActivate_username;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DataInvitationActivate = exports.DataInvitationActivateFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var DataInvitationActivateFields;
|
|
18
|
+
(function (DataInvitationActivateFields) {
|
|
19
|
+
DataInvitationActivateFields["COLUMN_USERNAME"] = "username";
|
|
20
|
+
})(DataInvitationActivateFields = exports.DataInvitationActivateFields || (exports.DataInvitationActivateFields = {}));
|
|
21
|
+
class DataInvitationActivate extends abstractEntity_1.AbstractEntity {
|
|
22
|
+
constructor(getDataInvitationActivateInput) {
|
|
23
|
+
super(getDataInvitationActivateInput);
|
|
24
|
+
_DataInvitationActivate_username.set(this, void 0);
|
|
25
|
+
__classPrivateFieldSet(this, _DataInvitationActivate_username, getDataInvitationActivateInput[DataInvitationActivateFields.COLUMN_USERNAME], "f");
|
|
26
|
+
}
|
|
27
|
+
get username() {
|
|
28
|
+
return __classPrivateFieldGet(this, _DataInvitationActivate_username, "f");
|
|
29
|
+
}
|
|
30
|
+
toJSON() {
|
|
31
|
+
return {
|
|
32
|
+
[DataInvitationActivateFields.COLUMN_USERNAME]: this.username,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DataInvitationActivate = DataInvitationActivate;
|
|
37
|
+
_DataInvitationActivate_username = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=dataInvitationActivate.js.map
|
|
@@ -12,3 +12,4 @@ export * from './entities/invitations/contact/invitationContact';
|
|
|
12
12
|
export * from './entities/unknownLicenses/relation';
|
|
13
13
|
export * from './entities/unknownLicenses/unknownLicense';
|
|
14
14
|
export * from './entities/customerCredentials';
|
|
15
|
+
export * from './entities/dataInvitationActivate';
|
package/build/customers/index.js
CHANGED
|
@@ -28,4 +28,5 @@ __exportStar(require("./entities/invitations/contact/invitationContact"), export
|
|
|
28
28
|
__exportStar(require("./entities/unknownLicenses/relation"), exports);
|
|
29
29
|
__exportStar(require("./entities/unknownLicenses/unknownLicense"), exports);
|
|
30
30
|
__exportStar(require("./entities/customerCredentials"), exports);
|
|
31
|
+
__exportStar(require("./entities/dataInvitationActivate"), exports);
|
|
31
32
|
//# sourceMappingURL=index.js.map
|
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.
|
|
7
|
+
"version": "3.356.0",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"@types/validatorjs": "3.15.0",
|
|
35
35
|
"@types/chai": "4.2.15",
|
|
36
36
|
"@types/chai-as-promised": "7.1.3",
|
|
37
|
-
"@types/lodash": "4.14.191",
|
|
38
37
|
"@types/mocha": "8.2.0",
|
|
39
38
|
"@types/node": "18.19.9",
|
|
40
39
|
"@types/sinon": "9.0.10",
|
|
@@ -80,11 +79,10 @@
|
|
|
80
79
|
"test": "tests"
|
|
81
80
|
},
|
|
82
81
|
"dependencies": {
|
|
83
|
-
"axios": "1.13.
|
|
82
|
+
"axios": "1.13.6",
|
|
84
83
|
"graphql": "16.8.1",
|
|
85
84
|
"graphql-request": "7.3.5",
|
|
86
85
|
"json-to-graphql-query": "2.3.0",
|
|
87
|
-
"lodash": "4.17.21",
|
|
88
86
|
"type-fest": "2.19.0",
|
|
89
87
|
"validatorjs": "3.22.1"
|
|
90
88
|
}
|