@arrowsphere/api-client 3.30.0-rc.bdj.4 → 3.30.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/build/AbstractHttpClient.d.ts +20 -0
- package/build/AbstractHttpClient.js +32 -0
- package/build/abstractGraphQLClient.d.ts +9 -5
- package/build/abstractGraphQLClient.js +8 -11
- package/build/{abstractClient.d.ts → abstractRestfulClient.d.ts} +4 -15
- package/build/{abstractClient.js → abstractRestfulClient.js} +6 -19
- package/build/campaign/campaignClient.d.ts +2 -2
- package/build/campaign/campaignClient.js +2 -2
- package/build/cart/cartClient.d.ts +2 -2
- package/build/cart/cartClient.js +2 -2
- package/build/catalog/catalogClient.d.ts +2 -2
- package/build/catalog/catalogClient.js +2 -2
- package/build/consumption/consumptionClient.d.ts +2 -2
- package/build/consumption/consumptionClient.js +2 -2
- package/build/contact/contactClient.d.ts +2 -2
- package/build/contact/contactClient.js +2 -2
- package/build/customers/customersClient.d.ts +2 -2
- package/build/customers/customersClient.js +2 -2
- package/build/general/checkDomainClient.d.ts +2 -2
- package/build/general/checkDomainClient.js +2 -2
- package/build/general/whoAmIClient.d.ts +2 -2
- package/build/general/whoAmIClient.js +2 -2
- package/build/index.d.ts +2 -1
- package/build/index.js +2 -1
- package/build/licenses/entities/findResult.d.ts +1 -1
- package/build/licenses/licensesClient.d.ts +2 -2
- package/build/licenses/licensesClient.js +2 -2
- package/build/orders/ordersClient.d.ts +2 -2
- package/build/orders/ordersClient.js +2 -2
- package/build/publicApiClient.d.ts +4 -2
- package/build/publicApiClient.js +38 -16
- package/build/publicGraphQLClient.js +6 -1
- package/build/security/register/registerClient.d.ts +2 -2
- package/build/security/register/registerClient.js +2 -2
- package/build/security/standards/standardsClient.d.ts +2 -2
- package/build/security/standards/standardsClient.js +2 -2
- package/build/subscriptions/subscriptionsClient.d.ts +2 -2
- package/build/subscriptions/subscriptionsClient.js +2 -2
- package/build/supportCenter/payloads/issue.d.ts +1 -1
- package/build/supportCenter/supportCenterClient.d.ts +2 -2
- package/build/supportCenter/supportCenterClient.js +2 -2
- package/build/user/UserClient.d.ts +10 -0
- package/build/user/UserClient.js +20 -0
- package/build/user/index.d.ts +2 -0
- package/build/user/index.js +19 -0
- package/build/user/types/CompleteWhoAmI.d.ts +18 -0
- package/build/user/types/CompleteWhoAmI.js +47 -0
- package/build/user/types/CompleteWhoAmICompany.d.ts +28 -0
- package/build/user/types/CompleteWhoAmICompany.js +74 -0
- package/build/user/types/CompleteWhoAmIUser.d.ts +37 -0
- package/build/user/types/CompleteWhoAmIUser.js +94 -0
- package/build/user/types/index.d.ts +3 -0
- package/build/user/types/index.js +20 -0
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractRestfulClient } from './abstractRestfulClient';
|
|
2
2
|
import { CheckDomainClient, WhoAmIClient } from './general';
|
|
3
3
|
import { LicensesClient } from './licenses';
|
|
4
4
|
import { SubscriptionsClient } from './subscriptions';
|
|
@@ -12,10 +12,11 @@ import { RegisterClient } from './security';
|
|
|
12
12
|
import { CartClient } from './cart/cartClient';
|
|
13
13
|
import { SupportCenterClient } from './supportCenter';
|
|
14
14
|
import { CatalogClient } from './catalog';
|
|
15
|
+
import { UserClient } from './user';
|
|
15
16
|
/**
|
|
16
17
|
* Public API Client class, should be the main entry point for your calls
|
|
17
18
|
*/
|
|
18
|
-
export declare class PublicApiClient extends
|
|
19
|
+
export declare class PublicApiClient extends AbstractRestfulClient {
|
|
19
20
|
constructor();
|
|
20
21
|
/**
|
|
21
22
|
* Creates a new {@link CustomersClient} instance and returns it
|
|
@@ -63,5 +64,6 @@ export declare class PublicApiClient extends AbstractClient {
|
|
|
63
64
|
getCartClient(): CartClient;
|
|
64
65
|
getSupportCenterClient(): SupportCenterClient;
|
|
65
66
|
getCatalogClient(): CatalogClient;
|
|
67
|
+
getUserClient(): UserClient;
|
|
66
68
|
}
|
|
67
69
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicApiClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const abstractRestfulClient_1 = require("./abstractRestfulClient");
|
|
5
5
|
const general_1 = require("./general");
|
|
6
6
|
const licenses_1 = require("./licenses");
|
|
7
7
|
const subscriptions_1 = require("./subscriptions");
|
|
@@ -15,10 +15,11 @@ const security_1 = require("./security");
|
|
|
15
15
|
const cartClient_1 = require("./cart/cartClient");
|
|
16
16
|
const supportCenter_1 = require("./supportCenter");
|
|
17
17
|
const catalog_1 = require("./catalog");
|
|
18
|
+
const user_1 = require("./user");
|
|
18
19
|
/**
|
|
19
20
|
* Public API Client class, should be the main entry point for your calls
|
|
20
21
|
*/
|
|
21
|
-
class PublicApiClient extends
|
|
22
|
+
class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
22
23
|
constructor() {
|
|
23
24
|
super();
|
|
24
25
|
}
|
|
@@ -30,7 +31,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
30
31
|
return new customers_1.CustomersClient()
|
|
31
32
|
.setUrl(this.url)
|
|
32
33
|
.setApiKey(this.apiKey)
|
|
33
|
-
.setHeaders(this.headers)
|
|
34
|
+
.setHeaders(this.headers)
|
|
35
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* Creates a new {@link WhoAmIClient} instance and returns it
|
|
@@ -40,7 +42,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
40
42
|
return new general_1.WhoAmIClient()
|
|
41
43
|
.setUrl(this.url)
|
|
42
44
|
.setApiKey(this.apiKey)
|
|
43
|
-
.setHeaders(this.headers)
|
|
45
|
+
.setHeaders(this.headers)
|
|
46
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
44
47
|
}
|
|
45
48
|
/**
|
|
46
49
|
* Creates a new {@link LicensesClient} instance and returns it
|
|
@@ -50,7 +53,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
50
53
|
return new licenses_1.LicensesClient()
|
|
51
54
|
.setUrl(this.url)
|
|
52
55
|
.setApiKey(this.apiKey)
|
|
53
|
-
.setHeaders(this.headers)
|
|
56
|
+
.setHeaders(this.headers)
|
|
57
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
56
60
|
* Creates a new {@link CheckDomainClient} instance and returns it
|
|
@@ -60,7 +64,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
60
64
|
return new general_1.CheckDomainClient()
|
|
61
65
|
.setUrl(this.url)
|
|
62
66
|
.setApiKey(this.apiKey)
|
|
63
|
-
.setHeaders(this.headers)
|
|
67
|
+
.setHeaders(this.headers)
|
|
68
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
64
69
|
}
|
|
65
70
|
/**
|
|
66
71
|
* Creates a new {@link SubscriptionsClient} instance and returns it
|
|
@@ -70,7 +75,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
70
75
|
return new subscriptions_1.SubscriptionsClient()
|
|
71
76
|
.setUrl(this.url)
|
|
72
77
|
.setApiKey(this.apiKey)
|
|
73
|
-
.setHeaders(this.headers)
|
|
78
|
+
.setHeaders(this.headers)
|
|
79
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
76
82
|
* Creates a new {@link OrdersClient} instance and returns it
|
|
@@ -80,7 +86,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
80
86
|
return new orders_1.OrdersClient()
|
|
81
87
|
.setUrl(this.url)
|
|
82
88
|
.setApiKey(this.apiKey)
|
|
83
|
-
.setHeaders(this.headers)
|
|
89
|
+
.setHeaders(this.headers)
|
|
90
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
84
91
|
}
|
|
85
92
|
/**
|
|
86
93
|
* Creates a new {@link ContactClient} instance and returns it
|
|
@@ -90,7 +97,8 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
90
97
|
return new contact_1.ContactClient()
|
|
91
98
|
.setUrl(this.url)
|
|
92
99
|
.setApiKey(this.apiKey)
|
|
93
|
-
.setHeaders(this.headers)
|
|
100
|
+
.setHeaders(this.headers)
|
|
101
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
94
102
|
}
|
|
95
103
|
/**
|
|
96
104
|
* Creates a new {@link ContactClient} instance and returns it
|
|
@@ -100,43 +108,57 @@ class PublicApiClient extends abstractClient_1.AbstractClient {
|
|
|
100
108
|
return new campaign_1.CampaignClient()
|
|
101
109
|
.setUrl(this.url)
|
|
102
110
|
.setApiKey(this.apiKey)
|
|
103
|
-
.setHeaders(this.headers)
|
|
111
|
+
.setHeaders(this.headers)
|
|
112
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
104
113
|
}
|
|
105
114
|
getConsumptionClient() {
|
|
106
115
|
return new consumption_1.ConsumptionClient()
|
|
107
116
|
.setUrl(this.url)
|
|
108
117
|
.setApiKey(this.apiKey)
|
|
109
|
-
.setHeaders(this.headers)
|
|
118
|
+
.setHeaders(this.headers)
|
|
119
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
110
120
|
}
|
|
111
121
|
getSecurityStandardsClient() {
|
|
112
122
|
return new standardsClient_1.StandardsClient()
|
|
113
123
|
.setUrl(this.url)
|
|
114
124
|
.setApiKey(this.apiKey)
|
|
115
|
-
.setHeaders(this.headers)
|
|
125
|
+
.setHeaders(this.headers)
|
|
126
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
116
127
|
}
|
|
117
128
|
getSecurityRegisterClient() {
|
|
118
129
|
return new security_1.RegisterClient()
|
|
119
130
|
.setUrl(this.url)
|
|
120
131
|
.setApiKey(this.apiKey)
|
|
121
|
-
.setHeaders(this.headers)
|
|
132
|
+
.setHeaders(this.headers)
|
|
133
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
122
134
|
}
|
|
123
135
|
getCartClient() {
|
|
124
136
|
return new cartClient_1.CartClient()
|
|
125
137
|
.setUrl(this.url)
|
|
126
138
|
.setApiKey(this.apiKey)
|
|
127
|
-
.setHeaders(this.headers)
|
|
139
|
+
.setHeaders(this.headers)
|
|
140
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
128
141
|
}
|
|
129
142
|
getSupportCenterClient() {
|
|
130
143
|
return new supportCenter_1.SupportCenterClient()
|
|
131
144
|
.setUrl(this.url)
|
|
132
145
|
.setApiKey(this.apiKey)
|
|
133
|
-
.setHeaders(this.headers)
|
|
146
|
+
.setHeaders(this.headers)
|
|
147
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
134
148
|
}
|
|
135
149
|
getCatalogClient() {
|
|
136
150
|
return new catalog_1.CatalogClient()
|
|
137
151
|
.setUrl(this.url)
|
|
138
152
|
.setApiKey(this.apiKey)
|
|
139
|
-
.setHeaders(this.headers)
|
|
153
|
+
.setHeaders(this.headers)
|
|
154
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
155
|
+
}
|
|
156
|
+
getUserClient() {
|
|
157
|
+
return new user_1.UserClient()
|
|
158
|
+
.setUrl(this.url)
|
|
159
|
+
.setApiKey(this.apiKey)
|
|
160
|
+
.setHeaders(this.headers)
|
|
161
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
140
162
|
}
|
|
141
163
|
}
|
|
142
164
|
exports.PublicApiClient = PublicApiClient;
|
|
@@ -5,7 +5,12 @@ const catalogGraphQLClient_1 = require("./catalog/catalogGraphQLClient");
|
|
|
5
5
|
const abstractGraphQLClient_1 = require("./abstractGraphQLClient");
|
|
6
6
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
7
7
|
getCatalogGraphQLClient() {
|
|
8
|
-
return new catalogGraphQLClient_1.CatalogGraphQLClient()
|
|
8
|
+
return new catalogGraphQLClient_1.CatalogGraphQLClient()
|
|
9
|
+
.setUrl(this.url)
|
|
10
|
+
.setToken(this.token)
|
|
11
|
+
.setHeaders(this.headers)
|
|
12
|
+
.setToken(this.token)
|
|
13
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
9
14
|
}
|
|
10
15
|
}
|
|
11
16
|
exports.PublicGraphQLClient = PublicGraphQLClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractRestfulClient, Parameters } from '../../abstractRestfulClient';
|
|
2
2
|
import { GetResult } from '../../getResult';
|
|
3
3
|
import { RegistrationLink } from './entity/registrationLink';
|
|
4
|
-
export declare class RegisterClient extends
|
|
4
|
+
export declare class RegisterClient extends AbstractRestfulClient {
|
|
5
5
|
/**
|
|
6
6
|
* The base path of the API
|
|
7
7
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RegisterClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const abstractRestfulClient_1 = require("../../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../../getResult");
|
|
6
6
|
const registrationLink_1 = require("./entity/registrationLink");
|
|
7
|
-
class RegisterClient extends
|
|
7
|
+
class RegisterClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
10
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractRestfulClient, Parameters } from '../../abstractRestfulClient';
|
|
2
2
|
import { Standards } from './entities/standards/standards';
|
|
3
3
|
import { GetResult } from '../../getResult';
|
|
4
4
|
import { Checks } from './entities/checks/checks';
|
|
5
5
|
import { Resources } from './entities/resources/resources';
|
|
6
|
-
export declare class StandardsClient extends
|
|
6
|
+
export declare class StandardsClient extends AbstractRestfulClient {
|
|
7
7
|
/**
|
|
8
8
|
* The base path of the API
|
|
9
9
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StandardsClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const abstractRestfulClient_1 = require("../../abstractRestfulClient");
|
|
5
5
|
const standards_1 = require("./entities/standards/standards");
|
|
6
6
|
const getResult_1 = require("../../getResult");
|
|
7
7
|
const checks_1 = require("./entities/checks/checks");
|
|
8
8
|
const resources_1 = require("./entities/resources/resources");
|
|
9
|
-
class StandardsClient extends
|
|
9
|
+
class StandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class SubscriptionsClient
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
5
5
|
import { SubscriptionData } from './entities/subscription';
|
|
6
6
|
import { SubscriptionsListResult } from './entities/subscriptionsListResult';
|
|
7
7
|
export declare type SubscriptionsListPayload = {
|
|
@@ -29,7 +29,7 @@ export declare type SubscriptionsListData = {
|
|
|
29
29
|
previous: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare class SubscriptionsClient extends
|
|
32
|
+
export declare class SubscriptionsClient extends AbstractRestfulClient {
|
|
33
33
|
/**
|
|
34
34
|
* The base path of the API
|
|
35
35
|
*/
|
|
@@ -4,9 +4,9 @@ exports.SubscriptionsClient = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Class SubscriptionsClient
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
8
8
|
const subscriptionsListResult_1 = require("./entities/subscriptionsListResult");
|
|
9
|
-
class SubscriptionsClient extends
|
|
9
|
+
class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IssueAdditionalDataType, IssueCreatedByType, IssueFields, IssueOfferType, IssueStatusesType } from '../entities/issue/issue';
|
|
2
|
-
import { Payload } from '../../
|
|
2
|
+
import { Payload } from '../../abstractRestfulClient';
|
|
3
3
|
export declare enum IssueProgramsType {
|
|
4
4
|
MSCSP = "MSCSP",
|
|
5
5
|
ARWS_AMS = "ARWS-AMS"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractRestfulClient, Parameters, ParametersWithPaginationType } from '../abstractRestfulClient';
|
|
2
2
|
import { Issue, Issues, IssueStatusesType } from './entities/issue/issue';
|
|
3
3
|
import { GetResult } from '../getResult';
|
|
4
4
|
import { IssueAttachment, IssueAttachments } from './entities/issue/attachment';
|
|
@@ -27,7 +27,7 @@ export declare type ListIssueParametersType = ParametersWithPaginationType & {
|
|
|
27
27
|
[ListIssueParametersFields.STATUSES]?: IssueStatusesType;
|
|
28
28
|
[ListIssueParametersFields.TITLE]?: string;
|
|
29
29
|
};
|
|
30
|
-
export declare class SupportCenterClient extends
|
|
30
|
+
export declare class SupportCenterClient extends AbstractRestfulClient {
|
|
31
31
|
protected basePath: string;
|
|
32
32
|
listTopics(parameters?: Parameters): Promise<GetResult<Topics>>;
|
|
33
33
|
listIssues(parameters?: ListIssueParametersType): Promise<GetResult<Issues>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SupportCenterClient = exports.ListIssueParametersFields = void 0;
|
|
4
|
-
const
|
|
4
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const issue_1 = require("./entities/issue/issue");
|
|
6
6
|
const getResult_1 = require("../getResult");
|
|
7
7
|
const attachment_1 = require("./entities/issue/attachment");
|
|
@@ -18,7 +18,7 @@ var ListIssueParametersFields;
|
|
|
18
18
|
ListIssueParametersFields["STATUSES"] = "statuses";
|
|
19
19
|
ListIssueParametersFields["TITLE"] = "title";
|
|
20
20
|
})(ListIssueParametersFields = exports.ListIssueParametersFields || (exports.ListIssueParametersFields = {}));
|
|
21
|
-
class SupportCenterClient extends
|
|
21
|
+
class SupportCenterClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.basePath = '/support';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
2
|
+
import { CompleteWhoAmI } from './types';
|
|
3
|
+
import { GetResult } from '../getResult';
|
|
4
|
+
export declare class UserClient extends AbstractRestfulClient {
|
|
5
|
+
protected basePath: string;
|
|
6
|
+
/**
|
|
7
|
+
* To get the infos and rights about a user.
|
|
8
|
+
*/
|
|
9
|
+
getInfos(parameters?: Parameters): Promise<GetResult<CompleteWhoAmI>>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserClient = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
+
const types_1 = require("./types");
|
|
6
|
+
const getResult_1 = require("../getResult");
|
|
7
|
+
class UserClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.basePath = '/partners/users/rights';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* To get the infos and rights about a user.
|
|
14
|
+
*/
|
|
15
|
+
async getInfos(parameters = {}) {
|
|
16
|
+
return new getResult_1.GetResult(types_1.CompleteWhoAmI, await this.get(parameters));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.UserClient = UserClient;
|
|
20
|
+
//# sourceMappingURL=UserClient.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./UserClient"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { CompleteWhoAmICompany, CompleteWhoAmICompanyData } from './CompleteWhoAmICompany';
|
|
3
|
+
import { CompleteWhoAmIUser, CompleteWhoAmIUserData } from './CompleteWhoAmIUser';
|
|
4
|
+
export declare enum CompleteWhoAmIResponseFields {
|
|
5
|
+
COLUMN_COMPANY = "company",
|
|
6
|
+
COLUMN_USER = "user"
|
|
7
|
+
}
|
|
8
|
+
export declare type CompleteWhoAmIResponseData = {
|
|
9
|
+
[CompleteWhoAmIResponseFields.COLUMN_COMPANY]: CompleteWhoAmICompanyData;
|
|
10
|
+
[CompleteWhoAmIResponseFields.COLUMN_USER]: CompleteWhoAmIUserData;
|
|
11
|
+
};
|
|
12
|
+
export declare class CompleteWhoAmI extends AbstractEntity<CompleteWhoAmIResponseData> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(data: CompleteWhoAmIResponseData);
|
|
15
|
+
get user(): CompleteWhoAmIUser;
|
|
16
|
+
get company(): CompleteWhoAmICompany;
|
|
17
|
+
toJSON(): CompleteWhoAmIResponseData;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _CompleteWhoAmI_user, _CompleteWhoAmI_company;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CompleteWhoAmI = exports.CompleteWhoAmIResponseFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const CompleteWhoAmICompany_1 = require("./CompleteWhoAmICompany");
|
|
18
|
+
const CompleteWhoAmIUser_1 = require("./CompleteWhoAmIUser");
|
|
19
|
+
var CompleteWhoAmIResponseFields;
|
|
20
|
+
(function (CompleteWhoAmIResponseFields) {
|
|
21
|
+
CompleteWhoAmIResponseFields["COLUMN_COMPANY"] = "company";
|
|
22
|
+
CompleteWhoAmIResponseFields["COLUMN_USER"] = "user";
|
|
23
|
+
})(CompleteWhoAmIResponseFields = exports.CompleteWhoAmIResponseFields || (exports.CompleteWhoAmIResponseFields = {}));
|
|
24
|
+
class CompleteWhoAmI extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(data) {
|
|
26
|
+
super(data);
|
|
27
|
+
_CompleteWhoAmI_user.set(this, void 0);
|
|
28
|
+
_CompleteWhoAmI_company.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _CompleteWhoAmI_user, new CompleteWhoAmIUser_1.CompleteWhoAmIUser(data[CompleteWhoAmIResponseFields.COLUMN_USER]), "f");
|
|
30
|
+
__classPrivateFieldSet(this, _CompleteWhoAmI_company, new CompleteWhoAmICompany_1.CompleteWhoAmICompany(data[CompleteWhoAmIResponseFields.COLUMN_COMPANY]), "f");
|
|
31
|
+
}
|
|
32
|
+
get user() {
|
|
33
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmI_user, "f");
|
|
34
|
+
}
|
|
35
|
+
get company() {
|
|
36
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmI_company, "f");
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[CompleteWhoAmIResponseFields.COLUMN_USER]: this.user.toJSON(),
|
|
41
|
+
[CompleteWhoAmIResponseFields.COLUMN_COMPANY]: this.company.toJSON(),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CompleteWhoAmI = CompleteWhoAmI;
|
|
46
|
+
_CompleteWhoAmI_user = new WeakMap(), _CompleteWhoAmI_company = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=CompleteWhoAmI.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum CompleteWhoAmICompanyFields {
|
|
3
|
+
COLUMN_HAS_ACCESS_TO_XCP = "hasAccessToXcp",
|
|
4
|
+
COLUMN_IS_PROTECTED = "isProtected",
|
|
5
|
+
COLUMN_MARKETPLACE = "marketplace",
|
|
6
|
+
COLUMN_NAME = "name",
|
|
7
|
+
COLUMN_REFERENCE = "reference",
|
|
8
|
+
COLUMN_TAGS = "tags"
|
|
9
|
+
}
|
|
10
|
+
export declare type CompleteWhoAmICompanyData = {
|
|
11
|
+
[CompleteWhoAmICompanyFields.COLUMN_HAS_ACCESS_TO_XCP]: boolean;
|
|
12
|
+
[CompleteWhoAmICompanyFields.COLUMN_IS_PROTECTED]: boolean;
|
|
13
|
+
[CompleteWhoAmICompanyFields.COLUMN_MARKETPLACE]?: string;
|
|
14
|
+
[CompleteWhoAmICompanyFields.COLUMN_NAME]?: string;
|
|
15
|
+
[CompleteWhoAmICompanyFields.COLUMN_REFERENCE]: string;
|
|
16
|
+
[CompleteWhoAmICompanyFields.COLUMN_TAGS]: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare class CompleteWhoAmICompany extends AbstractEntity<CompleteWhoAmICompanyData> {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(data: CompleteWhoAmICompanyData);
|
|
21
|
+
get hasAccessToXcp(): boolean;
|
|
22
|
+
get isProtected(): boolean;
|
|
23
|
+
get marketplace(): string | undefined;
|
|
24
|
+
get name(): string | undefined;
|
|
25
|
+
get reference(): string;
|
|
26
|
+
get tags(): string[];
|
|
27
|
+
toJSON(): CompleteWhoAmICompanyData;
|
|
28
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 _CompleteWhoAmICompany_hasAccessToXcp, _CompleteWhoAmICompany_isProtected, _CompleteWhoAmICompany_marketplace, _CompleteWhoAmICompany_name, _CompleteWhoAmICompany_reference, _CompleteWhoAmICompany_tags;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CompleteWhoAmICompany = exports.CompleteWhoAmICompanyFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var CompleteWhoAmICompanyFields;
|
|
18
|
+
(function (CompleteWhoAmICompanyFields) {
|
|
19
|
+
CompleteWhoAmICompanyFields["COLUMN_HAS_ACCESS_TO_XCP"] = "hasAccessToXcp";
|
|
20
|
+
CompleteWhoAmICompanyFields["COLUMN_IS_PROTECTED"] = "isProtected";
|
|
21
|
+
CompleteWhoAmICompanyFields["COLUMN_MARKETPLACE"] = "marketplace";
|
|
22
|
+
CompleteWhoAmICompanyFields["COLUMN_NAME"] = "name";
|
|
23
|
+
CompleteWhoAmICompanyFields["COLUMN_REFERENCE"] = "reference";
|
|
24
|
+
CompleteWhoAmICompanyFields["COLUMN_TAGS"] = "tags";
|
|
25
|
+
})(CompleteWhoAmICompanyFields = exports.CompleteWhoAmICompanyFields || (exports.CompleteWhoAmICompanyFields = {}));
|
|
26
|
+
class CompleteWhoAmICompany extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(data) {
|
|
28
|
+
super(data);
|
|
29
|
+
_CompleteWhoAmICompany_hasAccessToXcp.set(this, void 0);
|
|
30
|
+
_CompleteWhoAmICompany_isProtected.set(this, void 0);
|
|
31
|
+
_CompleteWhoAmICompany_marketplace.set(this, void 0);
|
|
32
|
+
_CompleteWhoAmICompany_name.set(this, void 0);
|
|
33
|
+
_CompleteWhoAmICompany_reference.set(this, void 0);
|
|
34
|
+
_CompleteWhoAmICompany_tags.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_hasAccessToXcp, data[CompleteWhoAmICompanyFields.COLUMN_HAS_ACCESS_TO_XCP], "f");
|
|
36
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_isProtected, data[CompleteWhoAmICompanyFields.COLUMN_IS_PROTECTED], "f");
|
|
37
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_marketplace, data[CompleteWhoAmICompanyFields.COLUMN_MARKETPLACE], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_name, data[CompleteWhoAmICompanyFields.COLUMN_NAME], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_reference, data[CompleteWhoAmICompanyFields.COLUMN_REFERENCE], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _CompleteWhoAmICompany_tags, data[CompleteWhoAmICompanyFields.COLUMN_TAGS], "f");
|
|
41
|
+
}
|
|
42
|
+
get hasAccessToXcp() {
|
|
43
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_hasAccessToXcp, "f");
|
|
44
|
+
}
|
|
45
|
+
get isProtected() {
|
|
46
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_isProtected, "f");
|
|
47
|
+
}
|
|
48
|
+
get marketplace() {
|
|
49
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_marketplace, "f");
|
|
50
|
+
}
|
|
51
|
+
get name() {
|
|
52
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_name, "f");
|
|
53
|
+
}
|
|
54
|
+
get reference() {
|
|
55
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_reference, "f");
|
|
56
|
+
}
|
|
57
|
+
get tags() {
|
|
58
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmICompany_tags, "f");
|
|
59
|
+
}
|
|
60
|
+
toJSON() {
|
|
61
|
+
return {
|
|
62
|
+
[CompleteWhoAmICompanyFields.COLUMN_HAS_ACCESS_TO_XCP]: this
|
|
63
|
+
.hasAccessToXcp,
|
|
64
|
+
[CompleteWhoAmICompanyFields.COLUMN_IS_PROTECTED]: this.isProtected,
|
|
65
|
+
[CompleteWhoAmICompanyFields.COLUMN_MARKETPLACE]: this.marketplace,
|
|
66
|
+
[CompleteWhoAmICompanyFields.COLUMN_NAME]: this.name,
|
|
67
|
+
[CompleteWhoAmICompanyFields.COLUMN_REFERENCE]: this.reference,
|
|
68
|
+
[CompleteWhoAmICompanyFields.COLUMN_TAGS]: this.tags,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.CompleteWhoAmICompany = CompleteWhoAmICompany;
|
|
73
|
+
_CompleteWhoAmICompany_hasAccessToXcp = new WeakMap(), _CompleteWhoAmICompany_isProtected = new WeakMap(), _CompleteWhoAmICompany_marketplace = new WeakMap(), _CompleteWhoAmICompany_name = new WeakMap(), _CompleteWhoAmICompany_reference = new WeakMap(), _CompleteWhoAmICompany_tags = new WeakMap();
|
|
74
|
+
//# sourceMappingURL=CompleteWhoAmICompany.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum CompleteWhoAmIUserFields {
|
|
3
|
+
COLUMN_EMAIL = "email",
|
|
4
|
+
COLUMN_FIRSTNAME = "firstname",
|
|
5
|
+
COLUMN_LASTNAME = "lastname",
|
|
6
|
+
COLUMN_LOGIN = "login",
|
|
7
|
+
COLUMN_POLICIES = "policies",
|
|
8
|
+
COLUMN_REFERENCE = "reference",
|
|
9
|
+
COLUMN_RIGHTS = "rights",
|
|
10
|
+
COLUMN_SCOPES = "scopes",
|
|
11
|
+
COLUMN_XAP_USERNAME = "xapUsername"
|
|
12
|
+
}
|
|
13
|
+
export declare type CompleteWhoAmIUserData = {
|
|
14
|
+
[CompleteWhoAmIUserFields.COLUMN_EMAIL]?: string;
|
|
15
|
+
[CompleteWhoAmIUserFields.COLUMN_FIRSTNAME]?: string;
|
|
16
|
+
[CompleteWhoAmIUserFields.COLUMN_LASTNAME]?: string;
|
|
17
|
+
[CompleteWhoAmIUserFields.COLUMN_LOGIN]?: string;
|
|
18
|
+
[CompleteWhoAmIUserFields.COLUMN_POLICIES]: string[];
|
|
19
|
+
[CompleteWhoAmIUserFields.COLUMN_REFERENCE]: string;
|
|
20
|
+
[CompleteWhoAmIUserFields.COLUMN_RIGHTS]: string[];
|
|
21
|
+
[CompleteWhoAmIUserFields.COLUMN_SCOPES]: string[];
|
|
22
|
+
[CompleteWhoAmIUserFields.COLUMN_XAP_USERNAME]: string;
|
|
23
|
+
};
|
|
24
|
+
export declare class CompleteWhoAmIUser extends AbstractEntity<CompleteWhoAmIUserData> {
|
|
25
|
+
#private;
|
|
26
|
+
constructor(data: CompleteWhoAmIUserData);
|
|
27
|
+
get email(): string | undefined;
|
|
28
|
+
get firstname(): string | undefined;
|
|
29
|
+
get lastname(): string | undefined;
|
|
30
|
+
get login(): string | undefined;
|
|
31
|
+
get policies(): string[];
|
|
32
|
+
get reference(): string;
|
|
33
|
+
get rights(): string[];
|
|
34
|
+
get scopes(): string[];
|
|
35
|
+
get xapUsername(): string;
|
|
36
|
+
toJSON(): CompleteWhoAmIUserData;
|
|
37
|
+
}
|