@arrowsphere/api-client 3.115.0-rc.bdj.2 → 3.115.3-rc.bdj.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.
@@ -8,6 +8,7 @@ export * from './types/entities/order';
8
8
  export * from './types/entities/partnertag';
9
9
  export * from './types/entities/subscription';
10
10
  export * from './types/entities/specialPriceRate';
11
+ export * from './types/entities/user';
11
12
  export * from './types/entities/vendor';
12
13
  export * from './types/entities/workgroup';
13
14
  export * from './graphqlApiClient';
@@ -24,6 +24,7 @@ __exportStar(require("./types/entities/order"), exports);
24
24
  __exportStar(require("./types/entities/partnertag"), exports);
25
25
  __exportStar(require("./types/entities/subscription"), exports);
26
26
  __exportStar(require("./types/entities/specialPriceRate"), exports);
27
+ __exportStar(require("./types/entities/user"), exports);
27
28
  __exportStar(require("./types/entities/vendor"), exports);
28
29
  __exportStar(require("./types/entities/workgroup"), exports);
29
30
  __exportStar(require("./graphqlApiClient"), exports);
@@ -0,0 +1,15 @@
1
+ import { ContactsType } from './contact';
2
+ export declare type UserType = {
3
+ id?: number;
4
+ allowDirectLogin?: boolean;
5
+ validatedAt?: string;
6
+ contact?: ContactsType;
7
+ };
8
+ export declare type UserHistoryType = {
9
+ id?: number;
10
+ action?: string;
11
+ createdAt?: string;
12
+ description?: string;
13
+ impactedUser?: UserType;
14
+ originatorUser?: UserType;
15
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -119,6 +119,7 @@ export declare enum SelectDataField {
119
119
  PARTNERTAG = "partnertag",
120
120
  SUBSCRIBED_PROGRAM = "subscribedProgram",
121
121
  SUBSCRIPTION = "subscription",
122
+ USER_HISTORY = "userHistory",
122
123
  WORKGROUP = "workgroup"
123
124
  }
124
125
  export declare type SelectAllResultType = {
@@ -99,6 +99,7 @@ var SelectDataField;
99
99
  SelectDataField["PARTNERTAG"] = "partnertag";
100
100
  SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
101
101
  SelectDataField["SUBSCRIPTION"] = "subscription";
102
+ SelectDataField["USER_HISTORY"] = "userHistory";
102
103
  SelectDataField["WORKGROUP"] = "workgroup";
103
104
  })(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
104
105
  var ErrorsField;
@@ -12,6 +12,7 @@ import { OrderItemsType, OrdersType } from './entities/order';
12
12
  import { VendorsType } from './entities/vendor';
13
13
  import { SubscribedProgramType } from './entities/program';
14
14
  import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
15
+ import { UserHistoryType, UserType } from './entities/user';
15
16
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
16
17
  declare type MissingFieldsOfCompanySchema = {
17
18
  contacts?: ContactsSchema;
@@ -59,6 +60,8 @@ export declare type ProgramSchema = Schema<ProgramType, boolean>;
59
60
  export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
60
61
  export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
61
62
  export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
63
+ export declare type UserSchema = Schema<UserType, boolean>;
64
+ export declare type UserHistorySchema = Schema<UserHistoryType, boolean>;
62
65
  export declare type VendorSchema = Schema<VendorsType, boolean>;
63
66
  export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
64
67
  export declare type SelectAllResultSchema = {
@@ -76,6 +79,7 @@ export declare type SelectAllResponseDataSchema = {
76
79
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
77
80
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
78
81
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
82
+ [SelectDataField.USER_HISTORY]?: UserHistorySchema;
79
83
  [SelectDataField.WORKGROUP]?: WorkgroupSchema;
80
84
  };
81
85
  export declare type SelectOneResultSchema = {
@@ -92,6 +96,7 @@ export declare type SelectOneResponseDataSchema = {
92
96
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
93
97
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
94
98
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
99
+ [SelectDataField.USER_HISTORY]?: UserHistorySchema;
95
100
  [SelectDataField.WORKGROUP]?: WorkgroupSchema;
96
101
  };
97
102
  export declare type SelectAllQuerySchema = {
@@ -4,13 +4,11 @@ import { SecurityScoreGraphQLClient } from './securityScore';
4
4
  import { GraphqlApiClient } from './graphqlApi';
5
5
  import { WellArchitectedGraphQLClient } from './wellArchitected';
6
6
  import { LicensesEventClient } from './licenses/licensesEventClient';
7
- import { UserGraphqlClient } from './user';
8
7
  export declare class PublicGraphQLClient extends AbstractGraphQLClient {
9
8
  getCatalogGraphQLClient(): CatalogGraphQLClient;
10
9
  getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
11
10
  getWellArchitectedGraphQLClient(): WellArchitectedGraphQLClient;
12
11
  getGraphqlApiClient(): GraphqlApiClient;
13
12
  getLicensesEventClient(): LicensesEventClient;
14
- getUserGraphqlApiClient(): UserGraphqlClient;
15
13
  private applyConfig;
16
14
  }
@@ -7,7 +7,6 @@ const securityScore_1 = require("./securityScore");
7
7
  const graphqlApi_1 = require("./graphqlApi");
8
8
  const wellArchitected_1 = require("./wellArchitected");
9
9
  const licensesEventClient_1 = require("./licenses/licensesEventClient");
10
- const user_1 = require("./user");
11
10
  class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
12
11
  getCatalogGraphQLClient() {
13
12
  const client = new catalogGraphQLClient_1.CatalogGraphQLClient();
@@ -34,11 +33,6 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
34
33
  this.applyConfig(client);
35
34
  return client;
36
35
  }
37
- getUserGraphqlApiClient() {
38
- const client = new user_1.UserGraphqlClient();
39
- this.applyConfig(client);
40
- return client;
41
- }
42
36
  applyConfig(client) {
43
37
  return client
44
38
  .setUrl(this.url)
@@ -1,3 +1,2 @@
1
1
  export * from './UserClient';
2
- export * from './userGraphqlClient';
3
2
  export * from './types';
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./UserClient"), exports);
18
- __exportStar(require("./userGraphqlClient"), exports);
19
18
  __exportStar(require("./types"), exports);
20
19
  //# sourceMappingURL=index.js.map
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.115.0-rc.bdj.2",
7
+ "version": "3.115.3-rc.bdj.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",
@@ -1,9 +0,0 @@
1
- import { AbstractGraphQLClient } from '../abstractGraphQLClient';
2
- export declare class UserGraphqlClient extends AbstractGraphQLClient {
3
- /**
4
- * The Path of graphql catalog API
5
- */
6
- private GRAPHQL;
7
- findRaw<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
8
- find(): Promise<unknown | null>;
9
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserGraphqlClient = void 0;
4
- const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
5
- class UserGraphqlClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
6
- constructor() {
7
- super(...arguments);
8
- /**
9
- * The Path of graphql catalog API
10
- */
11
- this.GRAPHQL = '/v2/graphql';
12
- }
13
- async findRaw(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 find() {
23
- const queryStr = '{ getUsers { updatedBy isEnabled extraData { name value} } }';
24
- const result = await this.findRaw(queryStr);
25
- console.log(result);
26
- return result;
27
- }
28
- }
29
- exports.UserGraphqlClient = UserGraphqlClient;
30
- //# sourceMappingURL=userGraphqlClient.js.map