@arrowsphere/api-client 3.30.0-rc.bdj.2 → 3.30.0-rc.ckh.1
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 +14 -0
- package/build/orders/entities/orders/extraInformation/extraInformation.d.ts +18 -0
- package/build/orders/entities/orders/extraInformation/extraInformation.js +38 -0
- package/build/orders/entities/orders/order.d.ts +5 -1
- package/build/orders/entities/orders/order.js +13 -3
- package/build/orders/index.d.ts +1 -0
- package/build/orders/index.js +1 -0
- package/build/orders/ordersClient.d.ts +9 -1
- package/build/orders/ordersClient.js +1 -0
- package/build/securityScore/entities/getPartnerData.d.ts +1 -4
- package/build/securityScore/entities/getPartnerData.js +2 -9
- package/build/securityScore/types/queryArguments.d.ts +3 -3
- package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +1 -2
- package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +1 -15
- package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +1 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.30.0] - 2023-05-29
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Add extra information order
|
|
11
|
+
|
|
12
|
+
## [3.29.0] - 2023-05-22
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- feat(catalog-client): add GQL client with token security and strong typing
|
|
17
|
+
- feat(security-score-client): add GQL client with token security and strong typing
|
|
18
|
+
- feat(licence-client): add option token security for the abstract restful client
|
|
19
|
+
|
|
6
20
|
## [3.28.0] - 2023-05-22
|
|
7
21
|
|
|
8
22
|
### Changed
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum OrderExtraInformationFields {
|
|
3
|
+
COLUMN_PROGRAMS = "programs"
|
|
4
|
+
}
|
|
5
|
+
export declare type OrderExtraInformationItemType = {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
[name: string]: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare type OrderExtraInformationType = {
|
|
11
|
+
[OrderExtraInformationFields.COLUMN_PROGRAMS]: OrderExtraInformationItemType;
|
|
12
|
+
};
|
|
13
|
+
export declare class OrderExtraInformation extends AbstractEntity<OrderExtraInformationType> {
|
|
14
|
+
#private;
|
|
15
|
+
constructor(input: OrderExtraInformationType);
|
|
16
|
+
get programs(): OrderExtraInformationItemType;
|
|
17
|
+
toJSON(): OrderExtraInformationType;
|
|
18
|
+
}
|
|
@@ -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 _OrderExtraInformation_programs;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OrderExtraInformation = exports.OrderExtraInformationFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var OrderExtraInformationFields;
|
|
18
|
+
(function (OrderExtraInformationFields) {
|
|
19
|
+
OrderExtraInformationFields["COLUMN_PROGRAMS"] = "programs";
|
|
20
|
+
})(OrderExtraInformationFields = exports.OrderExtraInformationFields || (exports.OrderExtraInformationFields = {}));
|
|
21
|
+
class OrderExtraInformation extends abstractEntity_1.AbstractEntity {
|
|
22
|
+
constructor(input) {
|
|
23
|
+
super(input);
|
|
24
|
+
_OrderExtraInformation_programs.set(this, void 0);
|
|
25
|
+
__classPrivateFieldSet(this, _OrderExtraInformation_programs, input[OrderExtraInformationFields.COLUMN_PROGRAMS], "f");
|
|
26
|
+
}
|
|
27
|
+
get programs() {
|
|
28
|
+
return __classPrivateFieldGet(this, _OrderExtraInformation_programs, "f");
|
|
29
|
+
}
|
|
30
|
+
toJSON() {
|
|
31
|
+
return {
|
|
32
|
+
[OrderExtraInformationFields.COLUMN_PROGRAMS]: this.programs,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.OrderExtraInformation = OrderExtraInformation;
|
|
37
|
+
_OrderExtraInformation_programs = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=extraInformation.js.map
|
|
@@ -2,6 +2,7 @@ import { AbstractEntity } from '../../../abstractEntity';
|
|
|
2
2
|
import { OrderProduct, OrderProductsType } from './products/products';
|
|
3
3
|
import { OrderPartner, OrderPartnerType } from './partner/partner';
|
|
4
4
|
import { ReferenceLink, ReferenceLinkType } from '../referenceLink';
|
|
5
|
+
import { OrderExtraInformation, OrderExtraInformationType } from './extraInformation/extraInformation';
|
|
5
6
|
export declare enum OrderFields {
|
|
6
7
|
COLUMN_REFERENCE = "reference",
|
|
7
8
|
COLUMN_STATUS = "status",
|
|
@@ -11,7 +12,8 @@ export declare enum OrderFields {
|
|
|
11
12
|
COLUMN_PARTNER = "partner",
|
|
12
13
|
COLUMN_CUSTOMER = "customer",
|
|
13
14
|
COLUMN_PONUMBER = "ponumber",
|
|
14
|
-
COLUMN_PRODUCTS = "products"
|
|
15
|
+
COLUMN_PRODUCTS = "products",
|
|
16
|
+
COLUMN_EXTRA_INFORMATION = "extraInformation"
|
|
15
17
|
}
|
|
16
18
|
export declare type OrderType = {
|
|
17
19
|
[OrderFields.COLUMN_REFERENCE]: string;
|
|
@@ -23,6 +25,7 @@ export declare type OrderType = {
|
|
|
23
25
|
[OrderFields.COLUMN_CUSTOMER]: ReferenceLinkType;
|
|
24
26
|
[OrderFields.COLUMN_PONUMBER]: string;
|
|
25
27
|
[OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
|
|
28
|
+
[OrderFields.COLUMN_EXTRA_INFORMATION]?: OrderExtraInformationType;
|
|
26
29
|
};
|
|
27
30
|
export declare class Order extends AbstractEntity<OrderType> {
|
|
28
31
|
#private;
|
|
@@ -36,5 +39,6 @@ export declare class Order extends AbstractEntity<OrderType> {
|
|
|
36
39
|
get customer(): ReferenceLink;
|
|
37
40
|
get ponumber(): string;
|
|
38
41
|
get products(): Array<OrderProduct>;
|
|
42
|
+
get extraInformation(): OrderExtraInformation | undefined;
|
|
39
43
|
toJSON(): OrderType;
|
|
40
44
|
}
|
|
@@ -10,13 +10,14 @@ 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 _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products;
|
|
13
|
+
var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_products, _Order_extraInformation;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Order = exports.OrderFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
17
|
const products_1 = require("./products/products");
|
|
18
18
|
const partner_1 = require("./partner/partner");
|
|
19
19
|
const referenceLink_1 = require("../referenceLink");
|
|
20
|
+
const extraInformation_1 = require("./extraInformation/extraInformation");
|
|
20
21
|
var OrderFields;
|
|
21
22
|
(function (OrderFields) {
|
|
22
23
|
OrderFields["COLUMN_REFERENCE"] = "reference";
|
|
@@ -28,6 +29,7 @@ var OrderFields;
|
|
|
28
29
|
OrderFields["COLUMN_CUSTOMER"] = "customer";
|
|
29
30
|
OrderFields["COLUMN_PONUMBER"] = "ponumber";
|
|
30
31
|
OrderFields["COLUMN_PRODUCTS"] = "products";
|
|
32
|
+
OrderFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
|
|
31
33
|
})(OrderFields = exports.OrderFields || (exports.OrderFields = {}));
|
|
32
34
|
class Order extends abstractEntity_1.AbstractEntity {
|
|
33
35
|
constructor(getOrderDataInput) {
|
|
@@ -41,6 +43,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
41
43
|
_Order_customer.set(this, void 0);
|
|
42
44
|
_Order_ponumber.set(this, void 0);
|
|
43
45
|
_Order_products.set(this, void 0);
|
|
46
|
+
_Order_extraInformation.set(this, void 0);
|
|
44
47
|
__classPrivateFieldSet(this, _Order_reference, getOrderDataInput[OrderFields.COLUMN_REFERENCE], "f");
|
|
45
48
|
__classPrivateFieldSet(this, _Order_status, getOrderDataInput[OrderFields.COLUMN_STATUS], "f");
|
|
46
49
|
__classPrivateFieldSet(this, _Order_dateStatus, getOrderDataInput[OrderFields.COLUMN_DATESTATUS], "f");
|
|
@@ -52,6 +55,9 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
52
55
|
__classPrivateFieldSet(this, _Order_customer, new referenceLink_1.ReferenceLink(getOrderDataInput[OrderFields.COLUMN_CUSTOMER]), "f");
|
|
53
56
|
__classPrivateFieldSet(this, _Order_ponumber, getOrderDataInput[OrderFields.COLUMN_PONUMBER], "f");
|
|
54
57
|
__classPrivateFieldSet(this, _Order_products, getOrderDataInput[OrderFields.COLUMN_PRODUCTS].map((order) => new products_1.OrderProduct(order)), "f");
|
|
58
|
+
__classPrivateFieldSet(this, _Order_extraInformation, getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION]
|
|
59
|
+
? new extraInformation_1.OrderExtraInformation(getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION])
|
|
60
|
+
: undefined, "f");
|
|
55
61
|
}
|
|
56
62
|
get reference() {
|
|
57
63
|
return __classPrivateFieldGet(this, _Order_reference, "f");
|
|
@@ -80,8 +86,11 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
80
86
|
get products() {
|
|
81
87
|
return __classPrivateFieldGet(this, _Order_products, "f");
|
|
82
88
|
}
|
|
89
|
+
get extraInformation() {
|
|
90
|
+
return __classPrivateFieldGet(this, _Order_extraInformation, "f");
|
|
91
|
+
}
|
|
83
92
|
toJSON() {
|
|
84
|
-
var _a;
|
|
93
|
+
var _a, _b;
|
|
85
94
|
return {
|
|
86
95
|
[OrderFields.COLUMN_REFERENCE]: this.reference,
|
|
87
96
|
[OrderFields.COLUMN_STATUS]: this.status,
|
|
@@ -92,9 +101,10 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
92
101
|
[OrderFields.COLUMN_CUSTOMER]: this.customer.toJSON(),
|
|
93
102
|
[OrderFields.COLUMN_PONUMBER]: this.ponumber,
|
|
94
103
|
[OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
|
|
104
|
+
[OrderFields.COLUMN_EXTRA_INFORMATION]: (_b = this.extraInformation) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
95
105
|
};
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
108
|
exports.Order = Order;
|
|
99
|
-
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap();
|
|
109
|
+
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap();
|
|
100
110
|
//# sourceMappingURL=order.js.map
|
package/build/orders/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from './entities/orders/products/identifiers/productIdentifiers';
|
|
|
6
6
|
export * from './entities/orders/products/prices/productPrices';
|
|
7
7
|
export * from './entities/orders/products/program/productProgram';
|
|
8
8
|
export * from './entities/orders/products/products';
|
|
9
|
+
export * from './entities/orders/extraInformation/extraInformation';
|
|
9
10
|
export * from './entities/referenceLink';
|
|
10
11
|
export * from './ordersClient';
|
package/build/orders/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./entities/orders/products/identifiers/productIdentifiers"
|
|
|
22
22
|
__exportStar(require("./entities/orders/products/prices/productPrices"), exports);
|
|
23
23
|
__exportStar(require("./entities/orders/products/program/productProgram"), exports);
|
|
24
24
|
__exportStar(require("./entities/orders/products/products"), exports);
|
|
25
|
+
__exportStar(require("./entities/orders/extraInformation/extraInformation"), exports);
|
|
25
26
|
__exportStar(require("./entities/referenceLink"), exports);
|
|
26
27
|
__exportStar(require("./ordersClient"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -33,7 +33,8 @@ export declare enum CreateOrderInputFields {
|
|
|
33
33
|
COLUMN_PRICE_END_CUSTOMER = "endCustomer",
|
|
34
34
|
COLUMN_PRICE_CURRENCY = "currency",
|
|
35
35
|
COLUMN_PRICE_UNIT = "unitPrice",
|
|
36
|
-
COLUMN_PRICE_EXCHANGE_RATE = "exchangeRate"
|
|
36
|
+
COLUMN_PRICE_EXCHANGE_RATE = "exchangeRate",
|
|
37
|
+
COLUMN_EXTRA_INFORMATION = "extraInformation"
|
|
37
38
|
}
|
|
38
39
|
export declare enum scenarioType {
|
|
39
40
|
INJECTION = "injection",
|
|
@@ -90,6 +91,13 @@ export declare type CreateOrderInputType = {
|
|
|
90
91
|
};
|
|
91
92
|
};
|
|
92
93
|
}>;
|
|
94
|
+
[CreateOrderInputFields.COLUMN_EXTRA_INFORMATION]?: {
|
|
95
|
+
programs: {
|
|
96
|
+
[key: string]: {
|
|
97
|
+
[name: string]: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
93
101
|
};
|
|
94
102
|
export declare class OrdersClient extends AbstractClient {
|
|
95
103
|
/**
|
|
@@ -38,6 +38,7 @@ var CreateOrderInputFields;
|
|
|
38
38
|
CreateOrderInputFields["COLUMN_PRICE_CURRENCY"] = "currency";
|
|
39
39
|
CreateOrderInputFields["COLUMN_PRICE_UNIT"] = "unitPrice";
|
|
40
40
|
CreateOrderInputFields["COLUMN_PRICE_EXCHANGE_RATE"] = "exchangeRate";
|
|
41
|
+
CreateOrderInputFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
|
|
41
42
|
})(CreateOrderInputFields = exports.CreateOrderInputFields || (exports.CreateOrderInputFields = {}));
|
|
42
43
|
var scenarioType;
|
|
43
44
|
(function (scenarioType) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import {
|
|
2
|
+
import { EndCustomersAggType, FilterType, MonthlyTrendAggType, PaginationsType, PeriodsType, ScoreResultType, SeveritiesAggType, ScoresAggType, ChecksAggType } from '../types/securityScoreGraphQLTypes';
|
|
3
3
|
import { SecurityScoreQueries } from '../types/queryArguments';
|
|
4
4
|
export declare enum GetPartnerDataFields {
|
|
5
5
|
COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
|
|
6
6
|
COLUMN_CHECKS_AGG = "checksAgg",
|
|
7
7
|
COLUMN_END_CUSTOMERS_AGG = "endCustomersAgg",
|
|
8
8
|
COLUMN_FILTERS = "filters",
|
|
9
|
-
COLUMN_MARKETPLACES_AGG = "marketplacesAgg",
|
|
10
9
|
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
11
10
|
COLUMN_PAGINATION = "pagination",
|
|
12
11
|
COLUMN_PERIOD = "period",
|
|
@@ -19,7 +18,6 @@ export declare type GetPartnerDataType = {
|
|
|
19
18
|
[GetPartnerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
20
19
|
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggType;
|
|
21
20
|
[GetPartnerDataFields.COLUMN_FILTERS]?: [FilterType];
|
|
22
|
-
[GetPartnerDataFields.COLUMN_MARKETPLACES_AGG]?: MarketplacesAggType;
|
|
23
21
|
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
24
22
|
[GetPartnerDataFields.COLUMN_PAGINATION]?: PaginationsType;
|
|
25
23
|
[GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsType;
|
|
@@ -38,7 +36,6 @@ export declare class GetPartnerData extends AbstractEntity<GetPartnerDataType> {
|
|
|
38
36
|
get endCustomersAgg(): EndCustomersAggType | undefined;
|
|
39
37
|
get filters(): [FilterType] | undefined;
|
|
40
38
|
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
41
|
-
get marketplacesAgg(): MarketplacesAggType | undefined;
|
|
42
39
|
get period(): PeriodsType | undefined;
|
|
43
40
|
get pagination(): PaginationsType | undefined;
|
|
44
41
|
get results(): [ScoreResultType] | undefined;
|
|
@@ -10,7 +10,7 @@ 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 _GetPartnerData_avgCurrentScore, _GetPartnerData_checksAgg, _GetPartnerData_endCustomersAgg, _GetPartnerData_filters,
|
|
13
|
+
var _GetPartnerData_avgCurrentScore, _GetPartnerData_checksAgg, _GetPartnerData_endCustomersAgg, _GetPartnerData_filters, _GetPartnerData_monthlyTrendAgg, _GetPartnerData_period, _GetPartnerData_pagination, _GetPartnerData_results, _GetPartnerData_scoresAgg, _GetPartnerData_severitiesAgg;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.GetPartnerData = exports.GetPartnerDataFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -21,7 +21,6 @@ var GetPartnerDataFields;
|
|
|
21
21
|
GetPartnerDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
22
22
|
GetPartnerDataFields["COLUMN_END_CUSTOMERS_AGG"] = "endCustomersAgg";
|
|
23
23
|
GetPartnerDataFields["COLUMN_FILTERS"] = "filters";
|
|
24
|
-
GetPartnerDataFields["COLUMN_MARKETPLACES_AGG"] = "marketplacesAgg";
|
|
25
24
|
GetPartnerDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
26
25
|
GetPartnerDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
27
26
|
GetPartnerDataFields["COLUMN_PERIOD"] = "period";
|
|
@@ -36,7 +35,6 @@ class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
|
36
35
|
_GetPartnerData_checksAgg.set(this, void 0);
|
|
37
36
|
_GetPartnerData_endCustomersAgg.set(this, void 0);
|
|
38
37
|
_GetPartnerData_filters.set(this, void 0);
|
|
39
|
-
_GetPartnerData_marketplacesAgg.set(this, void 0);
|
|
40
38
|
_GetPartnerData_monthlyTrendAgg.set(this, void 0);
|
|
41
39
|
_GetPartnerData_period.set(this, void 0);
|
|
42
40
|
_GetPartnerData_pagination.set(this, void 0);
|
|
@@ -47,7 +45,6 @@ class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
|
47
45
|
__classPrivateFieldSet(this, _GetPartnerData_checksAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_CHECKS_AGG], "f");
|
|
48
46
|
__classPrivateFieldSet(this, _GetPartnerData_endCustomersAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG], "f");
|
|
49
47
|
__classPrivateFieldSet(this, _GetPartnerData_filters, getPartnerDataInput[GetPartnerDataFields.COLUMN_FILTERS], "f");
|
|
50
|
-
__classPrivateFieldSet(this, _GetPartnerData_marketplacesAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_MARKETPLACES_AGG], "f");
|
|
51
48
|
__classPrivateFieldSet(this, _GetPartnerData_monthlyTrendAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
52
49
|
__classPrivateFieldSet(this, _GetPartnerData_period, getPartnerDataInput[GetPartnerDataFields.COLUMN_PERIOD], "f");
|
|
53
50
|
__classPrivateFieldSet(this, _GetPartnerData_pagination, getPartnerDataInput[GetPartnerDataFields.COLUMN_PAGINATION], "f");
|
|
@@ -70,9 +67,6 @@ class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
|
70
67
|
get monthlyTrendAgg() {
|
|
71
68
|
return __classPrivateFieldGet(this, _GetPartnerData_monthlyTrendAgg, "f");
|
|
72
69
|
}
|
|
73
|
-
get marketplacesAgg() {
|
|
74
|
-
return __classPrivateFieldGet(this, _GetPartnerData_marketplacesAgg, "f");
|
|
75
|
-
}
|
|
76
70
|
get period() {
|
|
77
71
|
return __classPrivateFieldGet(this, _GetPartnerData_period, "f");
|
|
78
72
|
}
|
|
@@ -94,7 +88,6 @@ class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
|
94
88
|
[GetPartnerDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
95
89
|
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]: this.endCustomersAgg,
|
|
96
90
|
[GetPartnerDataFields.COLUMN_FILTERS]: this.filters,
|
|
97
|
-
[GetPartnerDataFields.COLUMN_MARKETPLACES_AGG]: this.marketplacesAgg,
|
|
98
91
|
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]: this.monthlyTrendAgg,
|
|
99
92
|
[GetPartnerDataFields.COLUMN_PERIOD]: this.period,
|
|
100
93
|
[GetPartnerDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
@@ -105,5 +98,5 @@ class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
|
105
98
|
}
|
|
106
99
|
}
|
|
107
100
|
exports.GetPartnerData = GetPartnerData;
|
|
108
|
-
_GetPartnerData_avgCurrentScore = new WeakMap(), _GetPartnerData_checksAgg = new WeakMap(), _GetPartnerData_endCustomersAgg = new WeakMap(), _GetPartnerData_filters = new WeakMap(),
|
|
101
|
+
_GetPartnerData_avgCurrentScore = new WeakMap(), _GetPartnerData_checksAgg = new WeakMap(), _GetPartnerData_endCustomersAgg = new WeakMap(), _GetPartnerData_filters = new WeakMap(), _GetPartnerData_monthlyTrendAgg = new WeakMap(), _GetPartnerData_period = new WeakMap(), _GetPartnerData_pagination = new WeakMap(), _GetPartnerData_results = new WeakMap(), _GetPartnerData_scoresAgg = new WeakMap(), _GetPartnerData_severitiesAgg = new WeakMap();
|
|
109
102
|
//# sourceMappingURL=getPartnerData.js.map
|
|
@@ -84,13 +84,13 @@ export declare type PaginateArgument = {
|
|
|
84
84
|
[PaginateFields.PER_PAGE]?: number;
|
|
85
85
|
};
|
|
86
86
|
export declare type SearchBodyArgument = {
|
|
87
|
-
[SearchBodyFields.EXCLUSION_FILTERS]?: [SearchFilterArgument];
|
|
88
87
|
[SearchBodyFields.FILTERS]?: [SearchFilterArgument];
|
|
88
|
+
[SearchBodyFields.EXCLUSION_FILTERS]?: [SearchFilterArgument];
|
|
89
|
+
[SearchBodyFields.SORT]?: [SortArgument];
|
|
90
|
+
[SearchBodyFields.SUBSCRIPTION_REFERENCE]?: [[string]];
|
|
89
91
|
[SearchBodyFields.MARKETPLACE]?: [[string]];
|
|
90
92
|
[SearchBodyFields.MONTHLY_TREND_PERIOD]?: PeriodInputArgument;
|
|
91
93
|
[SearchBodyFields.PERIOD]?: PeriodInputArgument;
|
|
92
|
-
[SearchBodyFields.SORT]?: [SortArgument];
|
|
93
|
-
[SearchBodyFields.SUBSCRIPTION_REFERENCE]?: [[string]];
|
|
94
94
|
};
|
|
95
95
|
export declare type PeriodInputArgument = {
|
|
96
96
|
[PeriodInputFields.FROM]: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchBodyArgument, PaginateArgument, SecurityScoreQueries } from './queryArguments';
|
|
2
|
-
import { AccountsAggSchema, ChecksAggSchema, EndCustomersAggSchema, FilterSchema, MonthlyTrendAggSchema, PaginationSchema, PeriodsSchema, ScoreResultSchema, ScoresAggSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema, StandardWithCheckSchema
|
|
2
|
+
import { AccountsAggSchema, ChecksAggSchema, EndCustomersAggSchema, FilterSchema, MonthlyTrendAggSchema, PaginationSchema, PeriodsSchema, ScoreResultSchema, ScoresAggSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema, StandardWithCheckSchema } from './securityScoreGraphQLSchemas';
|
|
3
3
|
import { GetPartnerDataFields } from '../entities/getPartnerData';
|
|
4
4
|
import { GetCustomerDataFields } from '../entities/getCustomerData';
|
|
5
5
|
import { GetCustomerAccountDataFields } from '../entities/getCustomerAccountData';
|
|
@@ -13,7 +13,6 @@ export declare type GetPartnerDataQuery = {
|
|
|
13
13
|
[GetPartnerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggSchema;
|
|
14
14
|
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggSchema;
|
|
15
15
|
[GetPartnerDataFields.COLUMN_FILTERS]?: FilterSchema;
|
|
16
|
-
[GetPartnerDataFields.COLUMN_MARKETPLACES_AGG]?: MarketplacesAggSchema;
|
|
17
16
|
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
|
|
18
17
|
[GetPartnerDataFields.COLUMN_PAGINATION]?: PaginationSchema;
|
|
19
18
|
[GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Merge, Schema } from 'type-fest';
|
|
2
|
-
import { AccountType, CheckType, FilterValuesType, MonthlyTrendAggType, PeriodsType, RegistrationType, StandardAggType, StandardType, EndCustomerByDateAggType, AccountByDateAggType, CheckAggType, PaginationsType, ScoreByDateAggType, StandardWithCheckType, ChecksByStandardType, CheckByDateType, NameCountByDateAggType, EndCustomerAggType, SeverityAggType, AccountAggType, StandardByDateAggType, ScoreByMonthAggType, ScoresAggType
|
|
2
|
+
import { AccountType, CheckType, FilterValuesType, MonthlyTrendAggType, PeriodsType, RegistrationType, StandardAggType, StandardType, EndCustomerByDateAggType, AccountByDateAggType, CheckAggType, PaginationsType, ScoreByDateAggType, StandardWithCheckType, ChecksByStandardType, CheckByDateType, NameCountByDateAggType, EndCustomerAggType, SeverityAggType, AccountAggType, StandardByDateAggType, ScoreByMonthAggType, ScoresAggType } from './securityScoreGraphQLTypes';
|
|
3
3
|
declare type MissingFieldsOfMonthlyTrendAggSchema = {
|
|
4
4
|
scores?: Schema<ScoreByMonthAggType, boolean>;
|
|
5
5
|
};
|
|
@@ -75,18 +75,4 @@ declare type MissingFieldsInStandardWithCheckSchema = {
|
|
|
75
75
|
checks?: ChecksByStandardSchema;
|
|
76
76
|
};
|
|
77
77
|
export declare type StandardWithCheckSchema = Merge<Schema<StandardWithCheckType, boolean>, MissingFieldsInStandardWithCheckSchema>;
|
|
78
|
-
declare type MarketplacePartnerAggByDateAggSchema = Schema<MarketplacePartnerAggByDateAggType, boolean>;
|
|
79
|
-
declare type MissingFieldsInMarketplacePartnerAggSchema = {
|
|
80
|
-
data?: MarketplacePartnerAggByDateAggSchema;
|
|
81
|
-
};
|
|
82
|
-
declare type MarketplacePartnerAggSchema = Merge<Schema<MarketplacePartnerAggType, boolean>, MissingFieldsInMarketplacePartnerAggSchema>;
|
|
83
|
-
declare type MarketplaceByDateAggSchema = Schema<MarketplaceByDateAggType, boolean>;
|
|
84
|
-
declare type MissingFieldsInMarketplaceAggSchema = {
|
|
85
|
-
data?: MarketplaceByDateAggSchema;
|
|
86
|
-
partners?: MarketplacePartnerAggSchema;
|
|
87
|
-
};
|
|
88
|
-
declare type MarketplaceAggSchema = Merge<Schema<MarketplaceAggType, boolean>, MissingFieldsInMarketplaceAggSchema>;
|
|
89
|
-
export declare type MarketplacesAggSchema = {
|
|
90
|
-
marketplaces?: MarketplaceAggSchema;
|
|
91
|
-
};
|
|
92
78
|
export {};
|
|
@@ -127,6 +127,7 @@ export declare type ScoreByDateAggType = {
|
|
|
127
127
|
export declare type ScoresAggType = {
|
|
128
128
|
last?: ScoreByDateAggType;
|
|
129
129
|
scores?: [ScoreByDateAggType];
|
|
130
|
+
total?: number;
|
|
130
131
|
};
|
|
131
132
|
export declare type AccountByDateAggType = {
|
|
132
133
|
avgCurrentScore: number;
|
|
@@ -162,41 +163,6 @@ export declare type StandardAggType = {
|
|
|
162
163
|
export declare type StandardsAggType = {
|
|
163
164
|
standards: [StandardAggType];
|
|
164
165
|
};
|
|
165
|
-
export declare type MarketplaceSubscriptionReferenceAggType = {
|
|
166
|
-
accounts?: number;
|
|
167
|
-
avgCurrentScore?: number;
|
|
168
|
-
name?: string;
|
|
169
|
-
};
|
|
170
|
-
export declare type MarketplaceSubscriptionReferencesAggType = {
|
|
171
|
-
subscriptionReferences?: [MarketplaceSubscriptionReferenceAggType];
|
|
172
|
-
};
|
|
173
|
-
export declare type MarketplacePartnerAggByDateAggType = {
|
|
174
|
-
accounts?: number;
|
|
175
|
-
avgCurrentScore?: number;
|
|
176
|
-
date?: string;
|
|
177
|
-
subscriptionReferencesAgg?: MarketplaceSubscriptionReferencesAggType;
|
|
178
|
-
};
|
|
179
|
-
export declare type MarketplaceByDateAggType = {
|
|
180
|
-
avgCurrentScore?: number;
|
|
181
|
-
date?: string;
|
|
182
|
-
};
|
|
183
|
-
export declare type MarketplacePartnerAggType = {
|
|
184
|
-
data?: [MarketplacePartnerAggByDateAggType];
|
|
185
|
-
last?: MarketplacePartnerAggByDateAggType;
|
|
186
|
-
name?: string;
|
|
187
|
-
reference?: string;
|
|
188
|
-
progression?: number;
|
|
189
|
-
};
|
|
190
|
-
export declare type MarketplaceAggType = {
|
|
191
|
-
data?: [MarketplaceByDateAggType];
|
|
192
|
-
last?: MarketplaceByDateAggType;
|
|
193
|
-
name?: string;
|
|
194
|
-
partners?: [MarketplacePartnerAggType];
|
|
195
|
-
progression?: number;
|
|
196
|
-
};
|
|
197
|
-
export declare type MarketplacesAggType = {
|
|
198
|
-
marketplaces: [MarketplaceAggType];
|
|
199
|
-
};
|
|
200
166
|
export declare type CheckByDateType = {
|
|
201
167
|
date?: string;
|
|
202
168
|
flagged?: number;
|
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.30.0-rc.
|
|
7
|
+
"version": "3.30.0-rc.ckh.1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|