@arrowsphere/api-client 3.54.0 → 3.55.0-rc.fdi.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/build/account/accountGraphQLClient.d.ts +10 -0
- package/build/account/accountGraphQLClient.js +25 -0
- package/build/account/index.d.ts +3 -0
- package/build/account/index.js +20 -0
- package/build/account/types/accountGraphQLQueries.d.ts +40 -0
- package/build/account/types/accountGraphQLQueries.js +3 -0
- package/build/account/types/accountGraphQLSchemas.d.ts +34 -0
- package/build/account/types/accountGraphQLSchemas.js +3 -0
- package/build/account/types/accountGraphQLTypes.d.ts +66 -0
- package/build/account/types/accountGraphQLTypes.js +3 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/publicGraphQLClient.d.ts +3 -1
- package/build/publicGraphQLClient.js +8 -2
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
+
import { GetAccountQuery } from './types/accountGraphQLQueries';
|
|
3
|
+
import { GetAccountType } from './types/accountGraphQLTypes';
|
|
4
|
+
export declare class AccountGraphQLClient extends AbstractGraphQLClient {
|
|
5
|
+
/**
|
|
6
|
+
* The base path of the API
|
|
7
|
+
*/
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
findByQuery(query: GetAccountQuery): Promise<GetAccountType | null>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountGraphQLClient = void 0;
|
|
4
|
+
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
+
class AccountGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/**
|
|
9
|
+
* The base path of the API
|
|
10
|
+
*/
|
|
11
|
+
this.basePath = '/v2';
|
|
12
|
+
}
|
|
13
|
+
async findByQuery(query) {
|
|
14
|
+
this.path = '/graphql';
|
|
15
|
+
const queryStr = this.stringifyQuery(query);
|
|
16
|
+
try {
|
|
17
|
+
return await this.post(queryStr);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.AccountGraphQLClient = AccountGraphQLClient;
|
|
25
|
+
//# sourceMappingURL=accountGraphQLClient.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/accountGraphQLQueries"), exports);
|
|
18
|
+
__exportStar(require("./types/accountGraphQLTypes"), exports);
|
|
19
|
+
__exportStar(require("./accountGraphQLClient"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Merge, Schema } from 'type-fest';
|
|
2
|
+
import { AccountAttributeType } from './accountGraphQLTypes';
|
|
3
|
+
import { AccountAttributeSchema } from './accountGraphQLSchemas';
|
|
4
|
+
export declare type GetAccountQuery = Merge<{
|
|
5
|
+
__args: QueryAccountArgument;
|
|
6
|
+
}, AccountAttributeSchema>;
|
|
7
|
+
export declare type QueryAccountArgument = {
|
|
8
|
+
paginate?: PaginateAccountArgument;
|
|
9
|
+
searchBody?: SearchBodyAccountArgument;
|
|
10
|
+
};
|
|
11
|
+
export declare type PaginateAccountArgument = {
|
|
12
|
+
page: number;
|
|
13
|
+
perPage: number;
|
|
14
|
+
};
|
|
15
|
+
export declare type SearchBodyAccountArgument = {
|
|
16
|
+
keywords?: string;
|
|
17
|
+
keywordsByField?: KeywordsByFieldsAccountArgument[];
|
|
18
|
+
filters?: FiltersAccountArgument[];
|
|
19
|
+
exclusionFilters?: FiltersAccountArgument[];
|
|
20
|
+
sort?: SortAccountArgument[];
|
|
21
|
+
highlight?: boolean;
|
|
22
|
+
aggregatorFilter?: string[];
|
|
23
|
+
scopes?: string | string[] | string[][];
|
|
24
|
+
rights?: string[];
|
|
25
|
+
};
|
|
26
|
+
export declare type SortAccountArgument = {
|
|
27
|
+
name?: string;
|
|
28
|
+
order?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type KeywordsByFieldsAccountArgument = {
|
|
31
|
+
name?: string;
|
|
32
|
+
values?: string[];
|
|
33
|
+
operator?: string;
|
|
34
|
+
type?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type FiltersAccountArgument = {
|
|
37
|
+
name?: string;
|
|
38
|
+
value?: string | string[];
|
|
39
|
+
};
|
|
40
|
+
export declare type AccountSchema = Schema<AccountAttributeType, boolean>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AccountAliasInfo, AccountExtraData, AccountFilterValues, AccountPagination, AccountPolicy } from './accountGraphQLTypes';
|
|
2
|
+
import { Schema } from 'type-fest';
|
|
3
|
+
export declare type AccountAttributeSchema = {
|
|
4
|
+
pagination?: Schema<AccountPagination, boolean>;
|
|
5
|
+
users?: AccountSchema;
|
|
6
|
+
filters?: AccountFilterSchema;
|
|
7
|
+
};
|
|
8
|
+
export declare type AccountFilterSchema = {
|
|
9
|
+
name?: boolean;
|
|
10
|
+
value?: Schema<AccountFilterValues, boolean>;
|
|
11
|
+
};
|
|
12
|
+
export declare type AccountSchema = {
|
|
13
|
+
updatedBy?: boolean;
|
|
14
|
+
updatedAt?: boolean;
|
|
15
|
+
version?: boolean;
|
|
16
|
+
isEnabled?: boolean;
|
|
17
|
+
cognitoUsername?: boolean;
|
|
18
|
+
authMethods?: boolean;
|
|
19
|
+
canSecureAccountUntil?: boolean;
|
|
20
|
+
extraData?: Schema<AccountExtraData, boolean>;
|
|
21
|
+
applications?: AccountApplicationSchema;
|
|
22
|
+
aliases?: Schema<AccountAliasInfo, boolean>;
|
|
23
|
+
};
|
|
24
|
+
export declare type AccountApplicationSchema = {
|
|
25
|
+
updatedBy?: boolean;
|
|
26
|
+
updatedAt?: boolean;
|
|
27
|
+
version?: boolean;
|
|
28
|
+
isEnabled?: boolean;
|
|
29
|
+
extraData?: Schema<AccountExtraData, boolean>;
|
|
30
|
+
applicationName?: boolean;
|
|
31
|
+
rights?: boolean;
|
|
32
|
+
scopes?: boolean;
|
|
33
|
+
policies?: Schema<AccountPolicy, boolean>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare type GetAccountType = {
|
|
2
|
+
getUsers?: AccountAttributeType;
|
|
3
|
+
};
|
|
4
|
+
export declare type AccountAttributeType = {
|
|
5
|
+
pagination?: AccountPagination;
|
|
6
|
+
users?: Account[];
|
|
7
|
+
filters?: AccountFilter[];
|
|
8
|
+
};
|
|
9
|
+
export declare type Account = {
|
|
10
|
+
updatedBy?: string;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
version?: number;
|
|
13
|
+
isEnabled?: boolean;
|
|
14
|
+
cognitoUsername?: string;
|
|
15
|
+
authMethods?: string[];
|
|
16
|
+
canSecureAccountUntil?: string;
|
|
17
|
+
extraData?: AccountExtraData[];
|
|
18
|
+
applications?: AccountApplication[];
|
|
19
|
+
aliases?: AccountAliasInfo[];
|
|
20
|
+
};
|
|
21
|
+
export declare type AccountExtraData = {
|
|
22
|
+
name?: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare type AccountApplication = {
|
|
26
|
+
updatedBy?: string;
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
version?: number;
|
|
29
|
+
isEnabled?: boolean;
|
|
30
|
+
extraData?: AccountExtraData[];
|
|
31
|
+
applicationName?: string;
|
|
32
|
+
rights?: string[];
|
|
33
|
+
scopes?: string[];
|
|
34
|
+
policies?: AccountPolicy[];
|
|
35
|
+
};
|
|
36
|
+
export declare type AccountPolicy = {
|
|
37
|
+
policyName?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
updatedBy?: string;
|
|
40
|
+
updatedAt?: string;
|
|
41
|
+
version?: number;
|
|
42
|
+
isEnabled?: boolean;
|
|
43
|
+
scopes?: string[];
|
|
44
|
+
rights?: string[];
|
|
45
|
+
};
|
|
46
|
+
export declare type AccountAliasInfo = {
|
|
47
|
+
username?: string;
|
|
48
|
+
providerName?: string;
|
|
49
|
+
email?: string;
|
|
50
|
+
};
|
|
51
|
+
export declare type AccountPagination = {
|
|
52
|
+
perPage?: number;
|
|
53
|
+
currentPage?: number;
|
|
54
|
+
totalPage?: number;
|
|
55
|
+
total?: number;
|
|
56
|
+
next?: string;
|
|
57
|
+
previous?: string;
|
|
58
|
+
};
|
|
59
|
+
export declare type AccountFilter = {
|
|
60
|
+
name?: string;
|
|
61
|
+
value?: AccountFilterValues[];
|
|
62
|
+
};
|
|
63
|
+
export declare type AccountFilterValues = {
|
|
64
|
+
value?: string;
|
|
65
|
+
count?: number;
|
|
66
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './axiosSingleton';
|
|
|
2
2
|
export * from './abstractRestfulClient';
|
|
3
3
|
export * from './abstractEntity';
|
|
4
4
|
export * from './abstractGraphQLClient';
|
|
5
|
+
export * from './account/';
|
|
5
6
|
export * from './campaign/';
|
|
6
7
|
export * from './cart/';
|
|
7
8
|
export * from './catalog/';
|
package/build/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./axiosSingleton"), exports);
|
|
|
31
31
|
__exportStar(require("./abstractRestfulClient"), exports);
|
|
32
32
|
__exportStar(require("./abstractEntity"), exports);
|
|
33
33
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
34
|
+
__exportStar(require("./account/"), exports);
|
|
34
35
|
__exportStar(require("./campaign/"), exports);
|
|
35
36
|
__exportStar(require("./cart/"), exports);
|
|
36
37
|
__exportStar(require("./catalog/"), exports);
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { CatalogGraphQLClient } from './catalog
|
|
1
|
+
import { CatalogGraphQLClient } from './catalog';
|
|
2
2
|
import { AbstractGraphQLClient } from './abstractGraphQLClient';
|
|
3
3
|
import { SecurityScoreGraphQLClient } from './securityScore';
|
|
4
4
|
import { GraphqlApiClient } from './graphqlApi';
|
|
5
5
|
import { WellArchitectedGraphQLClient } from './wellArchitected';
|
|
6
|
+
import { AccountGraphQLClient } from './account';
|
|
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
|
+
getGraphqlAccountClient(): AccountGraphQLClient;
|
|
11
13
|
private applyConfig;
|
|
12
14
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicGraphQLClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const catalog_1 = require("./catalog");
|
|
5
5
|
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 account_1 = require("./account");
|
|
9
10
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
10
11
|
getCatalogGraphQLClient() {
|
|
11
|
-
const client = new
|
|
12
|
+
const client = new catalog_1.CatalogGraphQLClient();
|
|
12
13
|
this.applyConfig(client);
|
|
13
14
|
return client;
|
|
14
15
|
}
|
|
@@ -27,6 +28,11 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
27
28
|
this.applyConfig(client);
|
|
28
29
|
return client;
|
|
29
30
|
}
|
|
31
|
+
getGraphqlAccountClient() {
|
|
32
|
+
const client = new account_1.AccountGraphQLClient();
|
|
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