@arrowsphere/api-client 3.214.0 → 3.215.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.215.0] - 2025.08.06
|
|
7
|
+
### Added
|
|
8
|
+
- [customer] add endpoint to bulk update customers
|
|
9
|
+
- [customer] add endpoint to export customers
|
|
10
|
+
|
|
6
11
|
## [3.214.0] - 2025.07.31
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -37,6 +37,21 @@ export declare enum CustomerContactPayloadFields {
|
|
|
37
37
|
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
|
|
38
38
|
COLUMN_ORGANIZATION_UNIT_IDS = "organizationUnitIds"
|
|
39
39
|
}
|
|
40
|
+
export declare enum ExportCustomersInputFields {
|
|
41
|
+
COLUMN_FILTERS = "filters"
|
|
42
|
+
}
|
|
43
|
+
export declare enum CustomersFilterInputFields {
|
|
44
|
+
COMPANY_ID = "companyId",
|
|
45
|
+
COMPANY_NAME = "companyName",
|
|
46
|
+
ACRONYM = "acronym",
|
|
47
|
+
BILLING_ID = "billingId",
|
|
48
|
+
CITY = "city",
|
|
49
|
+
ZIP_CODE = "zipCode",
|
|
50
|
+
STATE = "state",
|
|
51
|
+
COUNTRY = "country",
|
|
52
|
+
CREATION_DATE = "creationDate",
|
|
53
|
+
INTERNAL_REFERENCE = "internalReference"
|
|
54
|
+
}
|
|
40
55
|
export declare type PostCustomerContactPayload = {
|
|
41
56
|
[CustomerContactPayloadFields.COLUMN_FIRST_NAME]: string;
|
|
42
57
|
[CustomerContactPayloadFields.COLUMN_LAST_NAME]: string;
|
|
@@ -113,6 +128,27 @@ export interface APIResponseError {
|
|
|
113
128
|
export declare type PatchCustomerContactPayload = {
|
|
114
129
|
[Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
|
|
115
130
|
};
|
|
131
|
+
export declare enum UploadAttachmentInputFields {
|
|
132
|
+
COLUMN_FILE_ENCODED = "fileEncoded"
|
|
133
|
+
}
|
|
134
|
+
export declare type BulkActionInputType = {
|
|
135
|
+
[UploadAttachmentInputFields.COLUMN_FILE_ENCODED]: string;
|
|
136
|
+
};
|
|
137
|
+
export declare type CustomersFilterInputType = {
|
|
138
|
+
[CustomersFilterInputFields.COMPANY_ID]?: string;
|
|
139
|
+
[CustomersFilterInputFields.COMPANY_NAME]?: string;
|
|
140
|
+
[CustomersFilterInputFields.ACRONYM]?: string;
|
|
141
|
+
[CustomersFilterInputFields.BILLING_ID]?: string;
|
|
142
|
+
[CustomersFilterInputFields.CITY]?: string;
|
|
143
|
+
[CustomersFilterInputFields.ZIP_CODE]?: string;
|
|
144
|
+
[CustomersFilterInputFields.STATE]?: string;
|
|
145
|
+
[CustomersFilterInputFields.COUNTRY]?: string;
|
|
146
|
+
[CustomersFilterInputFields.CREATION_DATE]?: string;
|
|
147
|
+
[CustomersFilterInputFields.INTERNAL_REFERENCE]?: string;
|
|
148
|
+
};
|
|
149
|
+
export declare type ExportCustomersInputType = {
|
|
150
|
+
[ExportCustomersInputFields.COLUMN_FILTERS]: CustomersFilterInputType;
|
|
151
|
+
};
|
|
116
152
|
export declare class CustomersClient extends AbstractRestfulClient {
|
|
117
153
|
/**
|
|
118
154
|
* The base path of the API
|
|
@@ -139,4 +175,6 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
139
175
|
getCustomerProvision(customerReference: string, program: string): Promise<GetResult<CustomerProvision>>;
|
|
140
176
|
getUnknownLicenses(customerReference: string, parameters?: Parameters): Promise<GetResult<DataUnknownLicenses>>;
|
|
141
177
|
getCustomerVendorCredentials(customerReference: string, vendorReference: string, parameters?: Parameters): Promise<GetResult<CustomerCredentials>>;
|
|
178
|
+
postBulkUploadCustomer(bulkActionInput: BulkActionInputType): Promise<void>;
|
|
179
|
+
postExportCustomers(payload: ExportCustomersInputType): Promise<void>;
|
|
142
180
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomersClient = exports.PostCustomerInvitationFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
|
|
3
|
+
exports.CustomersClient = exports.UploadAttachmentInputFields = 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");
|
|
@@ -35,11 +35,32 @@ var CustomerContactPayloadFields;
|
|
|
35
35
|
CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
|
|
36
36
|
CustomerContactPayloadFields["COLUMN_ORGANIZATION_UNIT_IDS"] = "organizationUnitIds";
|
|
37
37
|
})(CustomerContactPayloadFields = exports.CustomerContactPayloadFields || (exports.CustomerContactPayloadFields = {}));
|
|
38
|
+
var ExportCustomersInputFields;
|
|
39
|
+
(function (ExportCustomersInputFields) {
|
|
40
|
+
ExportCustomersInputFields["COLUMN_FILTERS"] = "filters";
|
|
41
|
+
})(ExportCustomersInputFields = exports.ExportCustomersInputFields || (exports.ExportCustomersInputFields = {}));
|
|
42
|
+
var CustomersFilterInputFields;
|
|
43
|
+
(function (CustomersFilterInputFields) {
|
|
44
|
+
CustomersFilterInputFields["COMPANY_ID"] = "companyId";
|
|
45
|
+
CustomersFilterInputFields["COMPANY_NAME"] = "companyName";
|
|
46
|
+
CustomersFilterInputFields["ACRONYM"] = "acronym";
|
|
47
|
+
CustomersFilterInputFields["BILLING_ID"] = "billingId";
|
|
48
|
+
CustomersFilterInputFields["CITY"] = "city";
|
|
49
|
+
CustomersFilterInputFields["ZIP_CODE"] = "zipCode";
|
|
50
|
+
CustomersFilterInputFields["STATE"] = "state";
|
|
51
|
+
CustomersFilterInputFields["COUNTRY"] = "country";
|
|
52
|
+
CustomersFilterInputFields["CREATION_DATE"] = "creationDate";
|
|
53
|
+
CustomersFilterInputFields["INTERNAL_REFERENCE"] = "internalReference";
|
|
54
|
+
})(CustomersFilterInputFields = exports.CustomersFilterInputFields || (exports.CustomersFilterInputFields = {}));
|
|
38
55
|
var PostCustomerInvitationFields;
|
|
39
56
|
(function (PostCustomerInvitationFields) {
|
|
40
57
|
PostCustomerInvitationFields["COLUMN_CONTACT_ID"] = "contactId";
|
|
41
58
|
PostCustomerInvitationFields["COLUMN_POLICY"] = "policy";
|
|
42
59
|
})(PostCustomerInvitationFields = exports.PostCustomerInvitationFields || (exports.PostCustomerInvitationFields = {}));
|
|
60
|
+
var UploadAttachmentInputFields;
|
|
61
|
+
(function (UploadAttachmentInputFields) {
|
|
62
|
+
UploadAttachmentInputFields["COLUMN_FILE_ENCODED"] = "fileEncoded";
|
|
63
|
+
})(UploadAttachmentInputFields = exports.UploadAttachmentInputFields || (exports.UploadAttachmentInputFields = {}));
|
|
43
64
|
class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
44
65
|
constructor() {
|
|
45
66
|
super(...arguments);
|
|
@@ -133,6 +154,14 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
133
154
|
this.path = `/${customerReference}/vendor/${vendorReference}/credentials`;
|
|
134
155
|
return new getResult_1.GetResult(customerCredentials_1.CustomerCredentials, await this.get(parameters));
|
|
135
156
|
}
|
|
157
|
+
async postBulkUploadCustomer(bulkActionInput) {
|
|
158
|
+
this.path = '/bulkupdate';
|
|
159
|
+
await this.post(bulkActionInput);
|
|
160
|
+
}
|
|
161
|
+
async postExportCustomers(payload) {
|
|
162
|
+
this.path = '/initiate-export';
|
|
163
|
+
await this.post(payload);
|
|
164
|
+
}
|
|
136
165
|
}
|
|
137
166
|
exports.CustomersClient = CustomersClient;
|
|
138
167
|
//# sourceMappingURL=customersClient.js.map
|
package/package.json
CHANGED