@arrowsphere/api-client 3.59.1 → 3.60.0-rc.bdj-2
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/build/licenses/entities/event/licensesEventQueries.d.ts +84 -0
- package/build/licenses/entities/event/licensesEventQueries.js +55 -0
- package/build/licenses/entities/event/licensesEventSchemas.d.ts +8 -0
- package/build/licenses/entities/event/licensesEventSchemas.js +4 -0
- package/build/licenses/index.d.ts +2 -0
- package/build/licenses/index.js +2 -0
- package/build/licenses/licensesEventClient.d.ts +10 -0
- package/build/licenses/licensesEventClient.js +29 -0
- package/build/publicGraphQLClient.d.ts +2 -0
- package/build/publicGraphQLClient.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { LicenseEvent } from './licenseEvent';
|
|
2
|
+
import { LicensesEventPageSchema, LicensesEventInputSchema } from './licensesEventSchemas';
|
|
3
|
+
export declare enum LicensesEventSortDirection {
|
|
4
|
+
asc = "asc",
|
|
5
|
+
desc = "desc"
|
|
6
|
+
}
|
|
7
|
+
export declare enum LicensesEventInputPaginationField {
|
|
8
|
+
PAGE = "page",
|
|
9
|
+
PER_PAGE = "perPage"
|
|
10
|
+
}
|
|
11
|
+
export declare type LicensesEventInputPaginationType = {
|
|
12
|
+
[LicensesEventInputPaginationField.PAGE]?: number;
|
|
13
|
+
[LicensesEventInputPaginationField.PER_PAGE]?: number;
|
|
14
|
+
};
|
|
15
|
+
export declare enum LicensesEventGetEventsQueryField {
|
|
16
|
+
ARGS = "__args",
|
|
17
|
+
EVENTS = "events",
|
|
18
|
+
PAGINATION = "pagination"
|
|
19
|
+
}
|
|
20
|
+
export declare enum LicensesEventDataField {
|
|
21
|
+
EVENT = "event"
|
|
22
|
+
}
|
|
23
|
+
export declare enum LicensesEventPaginationField {
|
|
24
|
+
CURRENT_PAGE = "currentPage",
|
|
25
|
+
PER_PAGE = "perPage",
|
|
26
|
+
TOTAL = "total",
|
|
27
|
+
TOTAL_PAGE = "totalPage"
|
|
28
|
+
}
|
|
29
|
+
export declare type LicensesEventPageType = {
|
|
30
|
+
[LicensesEventPaginationField.CURRENT_PAGE]?: number;
|
|
31
|
+
[LicensesEventPaginationField.PER_PAGE]?: number;
|
|
32
|
+
[LicensesEventPaginationField.TOTAL]?: number;
|
|
33
|
+
[LicensesEventPaginationField.TOTAL_PAGE]?: number;
|
|
34
|
+
};
|
|
35
|
+
export declare enum LicensesEventInputSortField {
|
|
36
|
+
ORDER = "order",
|
|
37
|
+
NAME = "name"
|
|
38
|
+
}
|
|
39
|
+
export declare type LicensesEventInputSortType = {
|
|
40
|
+
[LicensesEventInputSortField.ORDER]?: LicensesEventSortDirection;
|
|
41
|
+
[LicensesEventInputSortField.NAME]?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare enum LicensesEventQueryArgumentField {
|
|
44
|
+
SEARCH_BODY = "searchBody",
|
|
45
|
+
PAGINATE = "paginate"
|
|
46
|
+
}
|
|
47
|
+
export declare enum LicensesEventInputFiltersField {
|
|
48
|
+
NAMES = "names",
|
|
49
|
+
VALUES = "values"
|
|
50
|
+
}
|
|
51
|
+
export declare type LicensesEventInputFiltersType = {
|
|
52
|
+
[LicensesEventInputFiltersField.NAMES]?: string;
|
|
53
|
+
[LicensesEventInputFiltersField.VALUES]?: string[];
|
|
54
|
+
};
|
|
55
|
+
export declare enum LicensesEvenInputSearchBodyField {
|
|
56
|
+
FILTERS = "filters",
|
|
57
|
+
SORT = "sort"
|
|
58
|
+
}
|
|
59
|
+
export declare type LicensesEventInputSearchBodyType = {
|
|
60
|
+
[LicensesEvenInputSearchBodyField.FILTERS]: LicensesEventInputFiltersType[];
|
|
61
|
+
[LicensesEvenInputSearchBodyField.SORT]: LicensesEventInputSortType[];
|
|
62
|
+
};
|
|
63
|
+
export declare type LicensesEventQueryArgumentsType = {
|
|
64
|
+
[LicensesEventQueryArgumentField.SEARCH_BODY]?: LicensesEventInputSearchBodyType;
|
|
65
|
+
[LicensesEventQueryArgumentField.PAGINATE]?: LicensesEventInputPaginationType;
|
|
66
|
+
};
|
|
67
|
+
export declare enum LicensesEventQueries {
|
|
68
|
+
GET_EVENTS = "getEvents"
|
|
69
|
+
}
|
|
70
|
+
export declare type LicensesEventGetEventsQueryType = {
|
|
71
|
+
[LicensesEventQueries.GET_EVENTS]: {
|
|
72
|
+
[LicensesEventGetEventsQueryField.ARGS]?: LicensesEventQueryArgumentsType;
|
|
73
|
+
[LicensesEventGetEventsQueryField.EVENTS]: LicensesEventInputSchema;
|
|
74
|
+
[LicensesEventGetEventsQueryField.PAGINATION]?: LicensesEventPageSchema;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare type LicensesEventGetEventsResponseType = {
|
|
78
|
+
[LicensesEventQueries.GET_EVENTS]: {
|
|
79
|
+
[LicensesEventGetEventsQueryField.EVENTS]?: LicensesEventGetEventsResponseDataType;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare type LicensesEventGetEventsResponseDataType = {
|
|
83
|
+
[LicensesEventDataField.EVENT]?: LicenseEvent[];
|
|
84
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicensesEventQueries = exports.LicensesEvenInputSearchBodyField = exports.LicensesEventInputFiltersField = exports.LicensesEventQueryArgumentField = exports.LicensesEventInputSortField = exports.LicensesEventPaginationField = exports.LicensesEventDataField = exports.LicensesEventGetEventsQueryField = exports.LicensesEventInputPaginationField = exports.LicensesEventSortDirection = void 0;
|
|
4
|
+
var LicensesEventSortDirection;
|
|
5
|
+
(function (LicensesEventSortDirection) {
|
|
6
|
+
LicensesEventSortDirection["asc"] = "asc";
|
|
7
|
+
LicensesEventSortDirection["desc"] = "desc";
|
|
8
|
+
})(LicensesEventSortDirection = exports.LicensesEventSortDirection || (exports.LicensesEventSortDirection = {}));
|
|
9
|
+
var LicensesEventInputPaginationField;
|
|
10
|
+
(function (LicensesEventInputPaginationField) {
|
|
11
|
+
LicensesEventInputPaginationField["PAGE"] = "page";
|
|
12
|
+
LicensesEventInputPaginationField["PER_PAGE"] = "perPage";
|
|
13
|
+
})(LicensesEventInputPaginationField = exports.LicensesEventInputPaginationField || (exports.LicensesEventInputPaginationField = {}));
|
|
14
|
+
var LicensesEventGetEventsQueryField;
|
|
15
|
+
(function (LicensesEventGetEventsQueryField) {
|
|
16
|
+
LicensesEventGetEventsQueryField["ARGS"] = "__args";
|
|
17
|
+
LicensesEventGetEventsQueryField["EVENTS"] = "events";
|
|
18
|
+
LicensesEventGetEventsQueryField["PAGINATION"] = "pagination";
|
|
19
|
+
})(LicensesEventGetEventsQueryField = exports.LicensesEventGetEventsQueryField || (exports.LicensesEventGetEventsQueryField = {}));
|
|
20
|
+
var LicensesEventDataField;
|
|
21
|
+
(function (LicensesEventDataField) {
|
|
22
|
+
LicensesEventDataField["EVENT"] = "event";
|
|
23
|
+
})(LicensesEventDataField = exports.LicensesEventDataField || (exports.LicensesEventDataField = {}));
|
|
24
|
+
var LicensesEventPaginationField;
|
|
25
|
+
(function (LicensesEventPaginationField) {
|
|
26
|
+
LicensesEventPaginationField["CURRENT_PAGE"] = "currentPage";
|
|
27
|
+
LicensesEventPaginationField["PER_PAGE"] = "perPage";
|
|
28
|
+
LicensesEventPaginationField["TOTAL"] = "total";
|
|
29
|
+
LicensesEventPaginationField["TOTAL_PAGE"] = "totalPage";
|
|
30
|
+
})(LicensesEventPaginationField = exports.LicensesEventPaginationField || (exports.LicensesEventPaginationField = {}));
|
|
31
|
+
var LicensesEventInputSortField;
|
|
32
|
+
(function (LicensesEventInputSortField) {
|
|
33
|
+
LicensesEventInputSortField["ORDER"] = "order";
|
|
34
|
+
LicensesEventInputSortField["NAME"] = "name";
|
|
35
|
+
})(LicensesEventInputSortField = exports.LicensesEventInputSortField || (exports.LicensesEventInputSortField = {}));
|
|
36
|
+
var LicensesEventQueryArgumentField;
|
|
37
|
+
(function (LicensesEventQueryArgumentField) {
|
|
38
|
+
LicensesEventQueryArgumentField["SEARCH_BODY"] = "searchBody";
|
|
39
|
+
LicensesEventQueryArgumentField["PAGINATE"] = "paginate";
|
|
40
|
+
})(LicensesEventQueryArgumentField = exports.LicensesEventQueryArgumentField || (exports.LicensesEventQueryArgumentField = {}));
|
|
41
|
+
var LicensesEventInputFiltersField;
|
|
42
|
+
(function (LicensesEventInputFiltersField) {
|
|
43
|
+
LicensesEventInputFiltersField["NAMES"] = "names";
|
|
44
|
+
LicensesEventInputFiltersField["VALUES"] = "values";
|
|
45
|
+
})(LicensesEventInputFiltersField = exports.LicensesEventInputFiltersField || (exports.LicensesEventInputFiltersField = {}));
|
|
46
|
+
var LicensesEvenInputSearchBodyField;
|
|
47
|
+
(function (LicensesEvenInputSearchBodyField) {
|
|
48
|
+
LicensesEvenInputSearchBodyField["FILTERS"] = "filters";
|
|
49
|
+
LicensesEvenInputSearchBodyField["SORT"] = "sort";
|
|
50
|
+
})(LicensesEvenInputSearchBodyField = exports.LicensesEvenInputSearchBodyField || (exports.LicensesEvenInputSearchBodyField = {}));
|
|
51
|
+
var LicensesEventQueries;
|
|
52
|
+
(function (LicensesEventQueries) {
|
|
53
|
+
LicensesEventQueries["GET_EVENTS"] = "getEvents";
|
|
54
|
+
})(LicensesEventQueries = exports.LicensesEventQueries || (exports.LicensesEventQueries = {}));
|
|
55
|
+
//# sourceMappingURL=licensesEventQueries.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Schema } from 'type-fest';
|
|
2
|
+
import { LicenseEvent } from './licenseEvent';
|
|
3
|
+
import { LicensesEventDataField, LicensesEventPageType } from './licensesEventQueries';
|
|
4
|
+
export declare type LicensesEventSchema = Schema<LicenseEvent, boolean>;
|
|
5
|
+
export declare type LicensesEventPageSchema = Schema<LicensesEventPageType, boolean>;
|
|
6
|
+
export declare type LicensesEventInputSchema = {
|
|
7
|
+
[LicensesEventDataField.EVENT]?: LicensesEventSchema;
|
|
8
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './entities/event/licenseEvent';
|
|
2
2
|
export * from './entities/event/licenseEventGraphQL';
|
|
3
|
+
export * from './entities/event/licensesEventQueries';
|
|
4
|
+
export * from './entities/event/licensesEventSchemas';
|
|
3
5
|
export * from './entities/filterFindResult';
|
|
4
6
|
export * from './entities/findResult';
|
|
5
7
|
export * from './entities/getLicense/actionMessagesGetResult';
|
package/build/licenses/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./entities/event/licenseEvent"), exports);
|
|
18
18
|
__exportStar(require("./entities/event/licenseEventGraphQL"), exports);
|
|
19
|
+
__exportStar(require("./entities/event/licensesEventQueries"), exports);
|
|
20
|
+
__exportStar(require("./entities/event/licensesEventSchemas"), exports);
|
|
19
21
|
__exportStar(require("./entities/filterFindResult"), exports);
|
|
20
22
|
__exportStar(require("./entities/findResult"), exports);
|
|
21
23
|
__exportStar(require("./entities/getLicense/actionMessagesGetResult"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
+
import { LicensesEventGetEventsQueryType, LicensesEventGetEventsResponseType } from './entities/event/licensesEventQueries';
|
|
3
|
+
export declare class LicensesEventClient extends AbstractGraphQLClient {
|
|
4
|
+
/**
|
|
5
|
+
* The Path of graphql catalog API
|
|
6
|
+
*/
|
|
7
|
+
private GRAPHQL;
|
|
8
|
+
find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
|
|
9
|
+
getEvents(query: LicensesEventGetEventsQueryType): Promise<LicensesEventGetEventsResponseType | null>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicensesEventClient = void 0;
|
|
4
|
+
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
+
class LicensesEventClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/**
|
|
9
|
+
* The Path of graphql catalog API
|
|
10
|
+
*/
|
|
11
|
+
this.GRAPHQL = '/licenses/event/graphql';
|
|
12
|
+
}
|
|
13
|
+
async find(request) {
|
|
14
|
+
this.path = this.GRAPHQL;
|
|
15
|
+
try {
|
|
16
|
+
return await this.post(request);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async getEvents(query) {
|
|
23
|
+
const queryStr = this.stringifyQuery(query);
|
|
24
|
+
const result = await this.find(queryStr);
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.LicensesEventClient = LicensesEventClient;
|
|
29
|
+
//# sourceMappingURL=licensesEventClient.js.map
|
|
@@ -3,10 +3,12 @@ import { AbstractGraphQLClient } from './abstractGraphQLClient';
|
|
|
3
3
|
import { SecurityScoreGraphQLClient } from './securityScore';
|
|
4
4
|
import { GraphqlApiClient } from './graphqlApi';
|
|
5
5
|
import { WellArchitectedGraphQLClient } from './wellArchitected';
|
|
6
|
+
import { LicensesEventClient } from './licenses/licensesEventClient';
|
|
6
7
|
export declare class PublicGraphQLClient extends AbstractGraphQLClient {
|
|
7
8
|
getCatalogGraphQLClient(): CatalogGraphQLClient;
|
|
8
9
|
getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
|
|
9
10
|
getWellArchitectedGraphQLClient(): WellArchitectedGraphQLClient;
|
|
10
11
|
getGraphqlApiClient(): GraphqlApiClient;
|
|
12
|
+
getLicensesEventClient(): LicensesEventClient;
|
|
11
13
|
private applyConfig;
|
|
12
14
|
}
|
|
@@ -6,6 +6,7 @@ const abstractGraphQLClient_1 = require("./abstractGraphQLClient");
|
|
|
6
6
|
const securityScore_1 = require("./securityScore");
|
|
7
7
|
const graphqlApi_1 = require("./graphqlApi");
|
|
8
8
|
const wellArchitected_1 = require("./wellArchitected");
|
|
9
|
+
const licensesEventClient_1 = require("./licenses/licensesEventClient");
|
|
9
10
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
10
11
|
getCatalogGraphQLClient() {
|
|
11
12
|
const client = new catalogGraphQLClient_1.CatalogGraphQLClient();
|
|
@@ -27,6 +28,11 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
27
28
|
this.applyConfig(client);
|
|
28
29
|
return client;
|
|
29
30
|
}
|
|
31
|
+
getLicensesEventClient() {
|
|
32
|
+
const client = new licensesEventClient_1.LicensesEventClient();
|
|
33
|
+
this.applyConfig(client);
|
|
34
|
+
return client;
|
|
35
|
+
}
|
|
30
36
|
applyConfig(client) {
|
|
31
37
|
return client
|
|
32
38
|
.setUrl(this.url)
|
package/package.json
CHANGED