@arrowsphere/api-client 3.223.0-rc.fdi.1 → 3.224.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 +9 -3
- package/build/abstractRestfulClient.d.ts +2 -2
- package/build/abstractRestfulClient.js +4 -2
- package/build/graphqlApi/index.d.ts +2 -0
- package/build/graphqlApi/index.js +2 -0
- package/build/graphqlApi/types/entities/programAgreement.d.ts +16 -0
- package/build/graphqlApi/types/entities/programAgreement.js +3 -0
- package/build/graphqlApi/types/entities/providerAgreementHistory.d.ts +11 -0
- package/build/graphqlApi/types/entities/providerAgreementHistory.js +3 -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 +3 -0
- package/build/licenses/licensesClient.d.ts +3 -2
- package/build/licenses/licensesClient.js +2 -2
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.d.ts +1 -8
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +2 -17
- package/build/orders/index.d.ts +0 -1
- package/build/orders/index.js +0 -1
- package/package.json +1 -1
- package/build/orders/entities/orders/products/identifiers/vendor/vendorAttributes.d.ts +0 -13
- package/build/orders/entities/orders/products/identifiers/vendor/vendorAttributes.js +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,17 @@
|
|
|
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.
|
|
6
|
+
## [3.224.0] - 2025.11.05
|
|
7
7
|
|
|
8
|
-
###
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- [graphql-api] Add ProgramAgreement
|
|
11
|
+
|
|
12
|
+
## [3.223.0] - 2025.10.16
|
|
13
|
+
|
|
14
|
+
### Added
|
|
9
15
|
|
|
10
|
-
- [
|
|
16
|
+
- [License schedules tasks] Add ExtraInformationType in post/update/delete scheduled tasks payload
|
|
11
17
|
|
|
12
18
|
## [3.222.0] - 2025.09.25
|
|
13
19
|
|
|
@@ -192,13 +192,13 @@ export declare abstract class AbstractRestfulClient extends AbstractHttpClient {
|
|
|
192
192
|
protected patch<T>(payload?: Payload, parameters?: Parameters, headers?: Headers, options?: Options): Promise<T>;
|
|
193
193
|
/**
|
|
194
194
|
* Sends a DELETE request
|
|
195
|
-
* @param payload - Payload to be sent in the POST body
|
|
196
195
|
* @param parameters - Query parameters to be sent in the request
|
|
197
196
|
* @param headers - Headers to be sent in the request
|
|
198
197
|
* @param options - Options to send
|
|
198
|
+
* @param payload - Payload to be sent in the POST body
|
|
199
199
|
* @returns Promise\<T\>
|
|
200
200
|
*/
|
|
201
|
-
protected delete(parameters?: Parameters, headers?: Headers, options?: Options): Promise<void>;
|
|
201
|
+
protected delete(parameters?: Parameters, headers?: Headers, options?: Options, payload?: Payload): Promise<void>;
|
|
202
202
|
/**
|
|
203
203
|
* Generates the full url for request
|
|
204
204
|
* @param parameters - Parameters to serialize
|
|
@@ -307,15 +307,16 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
309
|
* Sends a DELETE request
|
|
310
|
-
* @param payload - Payload to be sent in the POST body
|
|
311
310
|
* @param parameters - Query parameters to be sent in the request
|
|
312
311
|
* @param headers - Headers to be sent in the request
|
|
313
312
|
* @param options - Options to send
|
|
313
|
+
* @param payload - Payload to be sent in the POST body
|
|
314
314
|
* @returns Promise\<T\>
|
|
315
315
|
*/
|
|
316
|
-
async delete(parameters = {}, headers = {}, options = {}) {
|
|
316
|
+
async delete(parameters = {}, headers = {}, options = {}, payload = {}) {
|
|
317
317
|
const url = this.generateUrl(parameters, options);
|
|
318
318
|
const config = {
|
|
319
|
+
data: payload,
|
|
319
320
|
headers: this.prepareHeaders(headers),
|
|
320
321
|
};
|
|
321
322
|
try {
|
|
@@ -327,6 +328,7 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
327
328
|
const { mustRetry } = await this.handleError(error);
|
|
328
329
|
if (mustRetry) {
|
|
329
330
|
const config = {
|
|
331
|
+
data: payload,
|
|
330
332
|
headers: this.prepareHeaders(headers),
|
|
331
333
|
};
|
|
332
334
|
const response = await this.client.delete(url, config);
|
|
@@ -23,3 +23,5 @@ export * from './types/entities/workgroup';
|
|
|
23
23
|
export * from './graphqlApiClient';
|
|
24
24
|
export * from './types/entities/quoteVersion';
|
|
25
25
|
export * from './types/entities/comment';
|
|
26
|
+
export * from './types/entities/programAgreement';
|
|
27
|
+
export * from './types/entities/providerAgreementHistory';
|
|
@@ -39,4 +39,6 @@ __exportStar(require("./types/entities/workgroup"), exports);
|
|
|
39
39
|
__exportStar(require("./graphqlApiClient"), exports);
|
|
40
40
|
__exportStar(require("./types/entities/quoteVersion"), exports);
|
|
41
41
|
__exportStar(require("./types/entities/comment"), exports);
|
|
42
|
+
__exportStar(require("./types/entities/programAgreement"), exports);
|
|
43
|
+
__exportStar(require("./types/entities/providerAgreementHistory"), exports);
|
|
42
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WorkgroupType } from './workgroup';
|
|
2
|
+
import { GraphqlApiProgramType } from './program';
|
|
3
|
+
import { SubscriptionType } from './subscription';
|
|
4
|
+
import { GraphqlApiProviderAgreementHistoryType } from './providerAgreementHistory';
|
|
5
|
+
export declare type GraphqlApiProgramAgreementType = {
|
|
6
|
+
id?: number;
|
|
7
|
+
createDate?: string;
|
|
8
|
+
endDateValidity?: string;
|
|
9
|
+
idFile?: string;
|
|
10
|
+
startDateValidity?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
workgroup?: WorkgroupType;
|
|
13
|
+
program?: GraphqlApiProgramType;
|
|
14
|
+
providerAgreementHistory?: GraphqlApiProviderAgreementHistoryType[];
|
|
15
|
+
subscription?: SubscriptionType;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserType } from './user';
|
|
2
|
+
import { SubscriptionType } from './subscription';
|
|
3
|
+
export declare type GraphqlApiProviderAgreementHistoryType = {
|
|
4
|
+
id?: number;
|
|
5
|
+
version?: number;
|
|
6
|
+
validateDate?: string;
|
|
7
|
+
impersonateUser: UserType;
|
|
8
|
+
user: UserType;
|
|
9
|
+
subscription: SubscriptionType;
|
|
10
|
+
subscriptionId: number;
|
|
11
|
+
};
|
|
@@ -14,6 +14,7 @@ import { SubscriptionType } from './entities/subscription';
|
|
|
14
14
|
import { UserHistoryType, UserType } from './entities/user';
|
|
15
15
|
import { WorkgroupType } from './entities/workgroup';
|
|
16
16
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
17
|
+
import { GraphqlApiProgramAgreementType } from './entities/programAgreement';
|
|
17
18
|
import { ContactsSchema, ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './graphqlApiSchemas';
|
|
18
19
|
/**
|
|
19
20
|
* For field __args
|
|
@@ -146,7 +147,8 @@ export declare enum SelectDataField {
|
|
|
146
147
|
USER = "user",
|
|
147
148
|
USER_HISTORY = "userHistory",
|
|
148
149
|
WORKGROUP = "workgroup",
|
|
149
|
-
SUPPORT_LEVEL = "supportLevel"
|
|
150
|
+
SUPPORT_LEVEL = "supportLevel",
|
|
151
|
+
PROGRAM_AGREEMENT = "programAgreement"
|
|
150
152
|
}
|
|
151
153
|
export declare type SelectAllResultType = {
|
|
152
154
|
[Queries.SELECT_ALL]: {
|
|
@@ -187,6 +189,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
187
189
|
[SelectDataField.USER_HISTORY]?: UserHistoryType[];
|
|
188
190
|
[SelectDataField.WORKGROUP]?: WorkgroupType[];
|
|
189
191
|
[SelectDataField.SUPPORT_LEVEL]?: GraphqlApiSupportLevel[];
|
|
192
|
+
[SelectDataField.PROGRAM_AGREEMENT]?: GraphqlApiProgramAgreementType[];
|
|
190
193
|
};
|
|
191
194
|
export declare enum ErrorsField {
|
|
192
195
|
CODE = "code",
|
|
@@ -118,6 +118,7 @@ var SelectDataField;
|
|
|
118
118
|
SelectDataField["USER_HISTORY"] = "userHistory";
|
|
119
119
|
SelectDataField["WORKGROUP"] = "workgroup";
|
|
120
120
|
SelectDataField["SUPPORT_LEVEL"] = "supportLevel";
|
|
121
|
+
SelectDataField["PROGRAM_AGREEMENT"] = "programAgreement";
|
|
121
122
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
122
123
|
var ErrorsField;
|
|
123
124
|
(function (ErrorsField) {
|
|
@@ -19,6 +19,7 @@ import { Comment } from './entities/comment';
|
|
|
19
19
|
import { GraphqlApiReportItemType, GraphqlApiReportStatusType, GraphqlApiReportType } from './entities/report';
|
|
20
20
|
import { GraphqlApiEavType } from './entities/eav';
|
|
21
21
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
22
|
+
import { GraphqlApiProgramAgreementType } from './entities/programAgreement';
|
|
22
23
|
import { GraphqlApiContributorRoleType, GraphqlApiStaffType } from './entities/contributor';
|
|
23
24
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
24
25
|
declare type MissingFieldsOfCompanySchema = {
|
|
@@ -151,6 +152,7 @@ export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
|
|
|
151
152
|
export declare type UserHistorySchema = Schema<UserHistoryType, boolean>;
|
|
152
153
|
export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
153
154
|
export declare type SupportLevelSchema = Schema<GraphqlApiSupportLevel, boolean>;
|
|
155
|
+
export declare type ProgramAgreementSchema = Schema<GraphqlApiProgramAgreementType, boolean>;
|
|
154
156
|
export declare type ExportResultSchema = {
|
|
155
157
|
[SelectableField.DATA]?: SelectAllResponseDataSchema;
|
|
156
158
|
[SelectableField.ERRORS]?: ErrorsSchema;
|
|
@@ -185,6 +187,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
185
187
|
[SelectDataField.USER_HISTORY]?: UserHistorySchema;
|
|
186
188
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
187
189
|
[SelectDataField.SUPPORT_LEVEL]?: SupportLevelSchema;
|
|
190
|
+
[SelectDataField.PROGRAM_AGREEMENT]?: ProgramAgreementSchema;
|
|
188
191
|
};
|
|
189
192
|
export declare type SelectOneResultSchema = {
|
|
190
193
|
[SelectableField.DATA]?: SelectOneResponseDataSchema;
|
|
@@ -257,13 +257,14 @@ export declare type SaveBillingCommentsInputType = {
|
|
|
257
257
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
|
|
258
258
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
|
|
259
259
|
};
|
|
260
|
+
export declare type DeleteScheduledTaskType = ExtraInformationType;
|
|
260
261
|
export declare type ScheduleTasks = {
|
|
261
262
|
coterminosityDate?: string;
|
|
262
263
|
periodicity?: number;
|
|
263
264
|
term?: number;
|
|
264
265
|
seats?: number;
|
|
265
266
|
executionDate: string;
|
|
266
|
-
};
|
|
267
|
+
} & ExtraInformationType;
|
|
267
268
|
export declare type UpdateScheduledTaskRequestType = Omit<ScheduleTasks, 'executionDate'>;
|
|
268
269
|
export declare type LicensePricingRate = {
|
|
269
270
|
rateType: RateTypeEnum;
|
|
@@ -426,7 +427,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
426
427
|
getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
|
|
427
428
|
updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
|
|
428
429
|
getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
|
|
429
|
-
deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<void>;
|
|
430
|
+
deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters, payload?: DeleteScheduledTaskType): Promise<void>;
|
|
430
431
|
getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
|
|
431
432
|
saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
|
|
432
433
|
rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
|
|
@@ -487,9 +487,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
487
487
|
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
488
488
|
return new getResult_1.GetResult(getScheduleTaskResult_1.GetScheduleTaskResult, await this.get(parameters));
|
|
489
489
|
}
|
|
490
|
-
async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}) {
|
|
490
|
+
async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}, payload = {}) {
|
|
491
491
|
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
492
|
-
return this.delete(parameters);
|
|
492
|
+
return this.delete(parameters, {}, {}, payload);
|
|
493
493
|
}
|
|
494
494
|
async getLicenseDailyPredictions(licenseReference, parameters = {}) {
|
|
495
495
|
this.path = `/${licenseReference}/predictions/daily`;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { VendorAttributes, VendorAttributesType } from './vendorAttributes';
|
|
2
1
|
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
3
2
|
export declare enum IdentifiersVendorFields {
|
|
4
|
-
COLUMN_SKU = "sku"
|
|
5
|
-
COLUMN_ATTRIBUTES = "attributes",
|
|
6
|
-
COLUMN_BRAND = "brand"
|
|
3
|
+
COLUMN_SKU = "sku"
|
|
7
4
|
}
|
|
8
5
|
export declare type IdentifiersVendorType = {
|
|
9
6
|
[IdentifiersVendorFields.COLUMN_SKU]: string;
|
|
10
|
-
[IdentifiersVendorFields.COLUMN_ATTRIBUTES]: VendorAttributesType;
|
|
11
|
-
[IdentifiersVendorFields.COLUMN_BRAND]: string;
|
|
12
7
|
};
|
|
13
8
|
export declare class IdentifiersVendor extends AbstractEntity<IdentifiersVendorType> {
|
|
14
9
|
#private;
|
|
15
10
|
constructor(vendor: IdentifiersVendorType);
|
|
16
11
|
get sku(): string;
|
|
17
|
-
get attributes(): VendorAttributes;
|
|
18
|
-
get brand(): string;
|
|
19
12
|
toJSON(): IdentifiersVendorType;
|
|
20
13
|
}
|
|
@@ -10,44 +10,29 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _IdentifiersVendor_sku
|
|
13
|
+
var _IdentifiersVendor_sku;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.IdentifiersVendor = exports.IdentifiersVendorFields = void 0;
|
|
16
|
-
const vendorAttributes_1 = require("./vendorAttributes");
|
|
17
16
|
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
18
17
|
var IdentifiersVendorFields;
|
|
19
18
|
(function (IdentifiersVendorFields) {
|
|
20
19
|
IdentifiersVendorFields["COLUMN_SKU"] = "sku";
|
|
21
|
-
IdentifiersVendorFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
22
|
-
IdentifiersVendorFields["COLUMN_BRAND"] = "brand";
|
|
23
20
|
})(IdentifiersVendorFields = exports.IdentifiersVendorFields || (exports.IdentifiersVendorFields = {}));
|
|
24
21
|
class IdentifiersVendor extends abstractEntity_1.AbstractEntity {
|
|
25
22
|
constructor(vendor) {
|
|
26
23
|
super(vendor);
|
|
27
24
|
_IdentifiersVendor_sku.set(this, void 0);
|
|
28
|
-
_IdentifiersVendor_attributes.set(this, void 0);
|
|
29
|
-
_IdentifiersVendor_brand.set(this, void 0);
|
|
30
25
|
__classPrivateFieldSet(this, _IdentifiersVendor_sku, vendor[IdentifiersVendorFields.COLUMN_SKU], "f");
|
|
31
|
-
__classPrivateFieldSet(this, _IdentifiersVendor_attributes, new vendorAttributes_1.VendorAttributes(vendor[IdentifiersVendorFields.COLUMN_ATTRIBUTES]), "f");
|
|
32
|
-
__classPrivateFieldSet(this, _IdentifiersVendor_brand, vendor[IdentifiersVendorFields.COLUMN_BRAND], "f");
|
|
33
26
|
}
|
|
34
27
|
get sku() {
|
|
35
28
|
return __classPrivateFieldGet(this, _IdentifiersVendor_sku, "f");
|
|
36
29
|
}
|
|
37
|
-
get attributes() {
|
|
38
|
-
return __classPrivateFieldGet(this, _IdentifiersVendor_attributes, "f");
|
|
39
|
-
}
|
|
40
|
-
get brand() {
|
|
41
|
-
return __classPrivateFieldGet(this, _IdentifiersVendor_brand, "f");
|
|
42
|
-
}
|
|
43
30
|
toJSON() {
|
|
44
31
|
return {
|
|
45
32
|
[IdentifiersVendorFields.COLUMN_SKU]: this.sku,
|
|
46
|
-
[IdentifiersVendorFields.COLUMN_ATTRIBUTES]: this.attributes.toJSON(),
|
|
47
|
-
[IdentifiersVendorFields.COLUMN_BRAND]: this.brand,
|
|
48
33
|
};
|
|
49
34
|
}
|
|
50
35
|
}
|
|
51
36
|
exports.IdentifiersVendor = IdentifiersVendor;
|
|
52
|
-
_IdentifiersVendor_sku = new WeakMap()
|
|
37
|
+
_IdentifiersVendor_sku = new WeakMap();
|
|
53
38
|
//# sourceMappingURL=identifiersVendor.js.map
|
package/build/orders/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './entities/orders/order';
|
|
|
4
4
|
export * from './entities/orders/updateOrderResult';
|
|
5
5
|
export * from './entities/orders/partner/partner';
|
|
6
6
|
export * from './entities/orders/products/identifiers/vendor/identifiersVendor';
|
|
7
|
-
export * from './entities/orders/products/identifiers/vendor/vendorAttributes';
|
|
8
7
|
export * from './entities/orders/products/identifiers/productIdentifiers';
|
|
9
8
|
export * from './entities/orders/products/prices/productPrices';
|
|
10
9
|
export * from './entities/orders/products/program/productProgram';
|
package/build/orders/index.js
CHANGED
|
@@ -20,7 +20,6 @@ __exportStar(require("./entities/orders/order"), exports);
|
|
|
20
20
|
__exportStar(require("./entities/orders/updateOrderResult"), exports);
|
|
21
21
|
__exportStar(require("./entities/orders/partner/partner"), exports);
|
|
22
22
|
__exportStar(require("./entities/orders/products/identifiers/vendor/identifiersVendor"), exports);
|
|
23
|
-
__exportStar(require("./entities/orders/products/identifiers/vendor/vendorAttributes"), exports);
|
|
24
23
|
__exportStar(require("./entities/orders/products/identifiers/productIdentifiers"), exports);
|
|
25
24
|
__exportStar(require("./entities/orders/products/prices/productPrices"), exports);
|
|
26
25
|
__exportStar(require("./entities/orders/products/program/productProgram"), exports);
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
-
export declare enum VendorAttributesFields {
|
|
3
|
-
COLUMN_CAN_SWITCH_AUTO_RENEW = "canSwitchAutoRenew"
|
|
4
|
-
}
|
|
5
|
-
export declare type VendorAttributesType = {
|
|
6
|
-
[VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare class VendorAttributes extends AbstractEntity<VendorAttributesType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(attributes: VendorAttributesType);
|
|
11
|
-
get canSwitchAutoRenew(): boolean | undefined;
|
|
12
|
-
toJSON(): VendorAttributesType;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 _VendorAttributes_canSwitchAutoRenew;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.VendorAttributes = exports.VendorAttributesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
17
|
-
var VendorAttributesFields;
|
|
18
|
-
(function (VendorAttributesFields) {
|
|
19
|
-
VendorAttributesFields["COLUMN_CAN_SWITCH_AUTO_RENEW"] = "canSwitchAutoRenew";
|
|
20
|
-
})(VendorAttributesFields = exports.VendorAttributesFields || (exports.VendorAttributesFields = {}));
|
|
21
|
-
class VendorAttributes extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(attributes) {
|
|
23
|
-
super(attributes);
|
|
24
|
-
_VendorAttributes_canSwitchAutoRenew.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _VendorAttributes_canSwitchAutoRenew, attributes[VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW], "f");
|
|
26
|
-
}
|
|
27
|
-
get canSwitchAutoRenew() {
|
|
28
|
-
return __classPrivateFieldGet(this, _VendorAttributes_canSwitchAutoRenew, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[VendorAttributesFields.COLUMN_CAN_SWITCH_AUTO_RENEW]: this
|
|
33
|
-
.canSwitchAutoRenew,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.VendorAttributes = VendorAttributes;
|
|
38
|
-
_VendorAttributes_canSwitchAutoRenew = new WeakMap();
|
|
39
|
-
//# sourceMappingURL=vendorAttributes.js.map
|