@arrowsphere/api-client 3.185.0-rc-bdj-3 → 3.185.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 +5 -0
- package/build/graphqlApi/types/entities/program.d.ts +1 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +4 -1
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +8 -7
- package/build/partner/partnerClient.d.ts +0 -7
- package/build/partner/partnerClient.js +1 -9
- package/package.json +1 -1
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.185.0] - 2025.04.11
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [programs] add programLevel endpoint
|
|
10
|
+
|
|
6
11
|
## [3.184.0] - 2025.04.01
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -6,7 +6,7 @@ import { LicenseBudgetType } from './entities/licenseBudget';
|
|
|
6
6
|
import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
|
|
7
7
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
8
8
|
import { PartnertagType } from './entities/partnertag';
|
|
9
|
-
import { GraphqlApiProgramType, ProgramLevelOptionGroupType, SubscribedProgramType } from './entities/program';
|
|
9
|
+
import { GraphqlApiProgramType, ProgramLevelOptionGroupType, ProgramLevelType, SubscribedProgramType } from './entities/program';
|
|
10
10
|
import { QuoteType } from './entities/quote';
|
|
11
11
|
import { GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
|
|
12
12
|
import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
@@ -130,6 +130,7 @@ export declare enum SelectDataField {
|
|
|
130
130
|
PARTNER = "partner",
|
|
131
131
|
PARTNERTAG = "partnertag",
|
|
132
132
|
PROGRAM = "program",
|
|
133
|
+
PROGRAM_LEVEL = "programLevel",
|
|
133
134
|
PROGRAM_LEVEL_OPTION_GROUP = "programLevelOptionGroup",
|
|
134
135
|
QUOTE = "quote",
|
|
135
136
|
REPORT = "report",
|
|
@@ -162,6 +163,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
162
163
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
163
164
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
164
165
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
|
|
166
|
+
[SelectDataField.PROGRAM_LEVEL]?: ProgramLevelType[];
|
|
165
167
|
[SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupType[];
|
|
166
168
|
[SelectDataField.QUOTE]?: QuoteType[];
|
|
167
169
|
[SelectDataField.REPORT]?: GraphqlApiReportType[];
|
|
@@ -243,6 +245,7 @@ export declare type SelectOneResponseDataType = {
|
|
|
243
245
|
[SelectDataField.PARTNER]?: PartnerType;
|
|
244
246
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
245
247
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType;
|
|
248
|
+
[SelectDataField.PROGRAM_LEVEL]?: ProgramLevelType;
|
|
246
249
|
[SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupType;
|
|
247
250
|
[SelectDataField.QUOTE]?: QuoteType;
|
|
248
251
|
[SelectDataField.REPORT]?: GraphqlApiReportType;
|
|
@@ -102,6 +102,7 @@ var SelectDataField;
|
|
|
102
102
|
SelectDataField["PARTNER"] = "partner";
|
|
103
103
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
104
104
|
SelectDataField["PROGRAM"] = "program";
|
|
105
|
+
SelectDataField["PROGRAM_LEVEL"] = "programLevel";
|
|
105
106
|
SelectDataField["PROGRAM_LEVEL_OPTION_GROUP"] = "programLevelOptionGroup";
|
|
106
107
|
SelectDataField["QUOTE"] = "quote";
|
|
107
108
|
SelectDataField["REPORT"] = "report";
|
|
@@ -116,19 +116,19 @@ export declare type PageSchema = Schema<PageType, boolean>;
|
|
|
116
116
|
export declare type ProgramBenefitSchema = Schema<ProgramBenefitType, boolean>;
|
|
117
117
|
export declare type ProgramLevelOptionSchema = Schema<ProgramLevelOptionType, boolean>;
|
|
118
118
|
export declare type ProgramRequirementSchema = Schema<ProgramRequirementType, boolean>;
|
|
119
|
-
export declare type ProgramLevelSchema = Schema<ProgramLevelType, boolean>;
|
|
120
|
-
declare type MissingFieldsOfProgramLevelOptionGroupSchema = {
|
|
121
|
-
programLevelOptions?: ProgramLevelOptionSchema;
|
|
122
|
-
};
|
|
123
|
-
export declare type ProgramLevelOptionGroupSchema = Merge<Schema<ProgramLevelOptionGroupType, boolean>, MissingFieldsOfProgramLevelOptionGroupSchema>;
|
|
124
|
-
export declare type SubscriptionExtraFieldSchema = Schema<SubscriptionExtraFieldType, boolean>;
|
|
119
|
+
export declare type ProgramLevelSchema = Merge<Schema<ProgramLevelType, boolean>, MissingFieldsOfLevelSchema>;
|
|
125
120
|
export declare type MissingFieldsOfLevelSchema = {
|
|
126
121
|
benefits?: ProgramBenefitSchema;
|
|
127
122
|
programLevelOptionGroups?: ProgramLevelOptionGroupSchema;
|
|
128
123
|
requirements?: ProgramRequirementSchema;
|
|
129
124
|
};
|
|
125
|
+
declare type MissingFieldsOfProgramLevelOptionGroupSchema = {
|
|
126
|
+
programLevelOptions?: ProgramLevelOptionSchema;
|
|
127
|
+
};
|
|
128
|
+
export declare type ProgramLevelOptionGroupSchema = Merge<Schema<ProgramLevelOptionGroupType, boolean>, MissingFieldsOfProgramLevelOptionGroupSchema>;
|
|
129
|
+
export declare type SubscriptionExtraFieldSchema = Schema<SubscriptionExtraFieldType, boolean>;
|
|
130
130
|
export declare type MissingFieldsOfProgramSchema = {
|
|
131
|
-
levels?:
|
|
131
|
+
levels?: ProgramLevelSchema;
|
|
132
132
|
subscriptionExtraFields?: SubscriptionExtraFieldSchema;
|
|
133
133
|
};
|
|
134
134
|
export declare type GraphqlApiProgramSchema = Merge<Schema<GraphqlApiProgramType, boolean>, MissingFieldsOfProgramSchema>;
|
|
@@ -161,6 +161,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
161
161
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
162
162
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
163
163
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
|
|
164
|
+
[SelectDataField.PROGRAM_LEVEL]?: ProgramLevelSchema;
|
|
164
165
|
[SelectDataField.PROGRAM_LEVEL_OPTION_GROUP]?: ProgramLevelOptionGroupSchema;
|
|
165
166
|
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
166
167
|
[SelectDataField.REPORT]?: ReportSchema;
|
|
@@ -106,12 +106,6 @@ export declare type PostPartnerPayload = {
|
|
|
106
106
|
[PartnerFields.COLUMN_COMPANY]?: PartnerCompanyPayload;
|
|
107
107
|
[PartnerFields.COLUMN_RECAPTCHA_TOKEN]: string;
|
|
108
108
|
};
|
|
109
|
-
export declare enum PartnerAnonymizeContactsPayloadFields {
|
|
110
|
-
COLUMN_CONTACTS = "contacts"
|
|
111
|
-
}
|
|
112
|
-
export declare type PartnerAnonymizeContactsPayload = {
|
|
113
|
-
[PartnerAnonymizeContactsPayloadFields.COLUMN_CONTACTS]: number[];
|
|
114
|
-
};
|
|
115
109
|
export declare class PartnerClient extends AbstractRestfulClient {
|
|
116
110
|
protected basePath: string;
|
|
117
111
|
deletePartner(partnerReference: string, parameters?: Parameters): Promise<void>;
|
|
@@ -127,5 +121,4 @@ export declare class PartnerClient extends AbstractRestfulClient {
|
|
|
127
121
|
updateScopeUser(partnerReference: string, userReference: string, payload: UpdateScopeUserPayload, parameters?: Parameters): Promise<void>;
|
|
128
122
|
getUserImpersonations(partnerReference: string, userReference: string, parameters?: Parameters): Promise<GetResult<GetUserImpersonationsResult>>;
|
|
129
123
|
postPartner(payload: PostPartnerPayload, parameters?: Parameters): Promise<GetResult<DataPartner>>;
|
|
130
|
-
anonymizeContacts(partnerReference: string, payload: PartnerAnonymizeContactsPayload, parameters?: Parameters): Promise<void>;
|
|
131
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartnerClient = exports.
|
|
3
|
+
exports.PartnerClient = exports.PartnerCompanyPayloadFields = exports.PartnerAddressFields = exports.PartnerContactPayloadFields = exports.PartnerUserPayloadFields = exports.PartnerFields = exports.PatchUserPayloadFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const getUserImpersonationsResult_1 = require("./types/getUserImpersonationsResult");
|
|
@@ -64,10 +64,6 @@ var PartnerCompanyPayloadFields;
|
|
|
64
64
|
PartnerCompanyPayloadFields["COLUMN_REGISTRATION_NUMBER"] = "registrationNumber";
|
|
65
65
|
PartnerCompanyPayloadFields["COLUMN_VAT_NUMBER"] = "vatNumber";
|
|
66
66
|
})(PartnerCompanyPayloadFields = exports.PartnerCompanyPayloadFields || (exports.PartnerCompanyPayloadFields = {}));
|
|
67
|
-
var PartnerAnonymizeContactsPayloadFields;
|
|
68
|
-
(function (PartnerAnonymizeContactsPayloadFields) {
|
|
69
|
-
PartnerAnonymizeContactsPayloadFields["COLUMN_CONTACTS"] = "contacts";
|
|
70
|
-
})(PartnerAnonymizeContactsPayloadFields = exports.PartnerAnonymizeContactsPayloadFields || (exports.PartnerAnonymizeContactsPayloadFields = {}));
|
|
71
67
|
class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
72
68
|
constructor() {
|
|
73
69
|
super(...arguments);
|
|
@@ -120,10 +116,6 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
120
116
|
this.path = `/v1/register`;
|
|
121
117
|
return new getResult_1.GetResult(dataPartner_1.DataPartner, await this.post(payload, parameters));
|
|
122
118
|
}
|
|
123
|
-
async anonymizeContacts(partnerReference, payload, parameters = {}) {
|
|
124
|
-
this.path = `/${partnerReference}/contact/anonymize`;
|
|
125
|
-
await this.patch(payload, parameters);
|
|
126
|
-
}
|
|
127
119
|
}
|
|
128
120
|
exports.PartnerClient = PartnerClient;
|
|
129
121
|
//# sourceMappingURL=partnerClient.js.map
|
package/package.json
CHANGED