@arrowsphere/api-client 3.215.0-rc-bdj-1 → 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
|
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
import { PartnerType } from './company';
|
|
2
2
|
import { ContactsType } from './contact';
|
|
3
|
-
import { PartnertagType } from './partnertag';
|
|
4
3
|
import { GraphqlApiProgramLevelType, GraphqlApiProgramType } from './program';
|
|
5
4
|
export declare type SubscriptionType = {
|
|
6
5
|
id?: number;
|
|
7
|
-
agreement?: GraphqlApiSubscriptionAgreementType;
|
|
8
6
|
autoReporting?: boolean;
|
|
9
|
-
clicktoAccept?: boolean;
|
|
10
7
|
company?: PartnerType;
|
|
11
|
-
ctaValidatedAt?: string;
|
|
12
|
-
demandedAt?: string;
|
|
13
|
-
enabled?: boolean;
|
|
14
8
|
endedAt?: string;
|
|
15
9
|
level?: GraphqlApiProgramLevelType;
|
|
16
10
|
localContact?: ContactsType;
|
|
17
11
|
orderId?: string;
|
|
18
12
|
partnerContact?: ContactsType;
|
|
19
13
|
partnerId?: string;
|
|
20
|
-
partnerTags?: PartnertagType[];
|
|
21
14
|
program?: GraphqlApiProgramType;
|
|
22
15
|
startedAt?: string;
|
|
23
|
-
status?: GraphqlApiSubscriptionStatusType;
|
|
24
|
-
updatedAt?: string;
|
|
25
16
|
userNote?: string;
|
|
26
17
|
validatedAt?: string;
|
|
27
18
|
};
|
|
28
|
-
export declare type GraphqlApiSubscriptionStatusType = {
|
|
29
|
-
id?: number;
|
|
30
|
-
name?: string;
|
|
31
|
-
};
|
|
32
|
-
export declare type GraphqlApiSubscriptionAgreementType = {
|
|
33
|
-
id?: number;
|
|
34
|
-
lastVersion?: number;
|
|
35
|
-
total?: number;
|
|
36
|
-
};
|
|
@@ -144,13 +144,10 @@ declare type MissingFieldsOfStaffSchema = {
|
|
|
144
144
|
};
|
|
145
145
|
export declare type GraphqlApiStaffSchema = Merge<Schema<GraphqlApiStaffType, boolean>, MissingFieldsOfStaffSchema>;
|
|
146
146
|
export declare type GraphqlApiContributorRoleSchema = Schema<GraphqlApiContributorRoleType, boolean>;
|
|
147
|
-
declare type MissingFieldsOfSubscriptionSchema = {
|
|
148
|
-
partnerTags?: PartnertagSchema;
|
|
149
|
-
};
|
|
150
|
-
export declare type SubscriptionSchema = Merge<Schema<SubscriptionType, boolean>, MissingFieldsOfSubscriptionSchema>;
|
|
151
147
|
export declare type ReportStatusSchema = Schema<GraphqlApiReportStatusType, boolean>;
|
|
152
148
|
export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
|
|
153
149
|
export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
|
|
150
|
+
export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
|
|
154
151
|
export declare type UserHistorySchema = Schema<UserHistoryType, boolean>;
|
|
155
152
|
export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
156
153
|
export declare type SupportLevelSchema = Schema<GraphqlApiSupportLevel, boolean>;
|
package/package.json
CHANGED