@arrowsphere/api-client 3.115.0-rc.bdj.9 → 3.115.0-rc.jpb.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/graphqlApi/index.d.ts +0 -1
- package/build/graphqlApi/index.js +0 -1
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +0 -7
- package/build/graphqlApi/types/graphqlApiQueries.js +0 -2
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +0 -7
- package/build/licenses/licensesClient.js +5 -1
- package/package.json +1 -1
- package/build/graphqlApi/types/entities/user.d.ts +0 -15
- package/build/graphqlApi/types/entities/user.js +0 -3
|
@@ -8,7 +8,6 @@ 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';
|
|
12
11
|
export * from './types/entities/vendor';
|
|
13
12
|
export * from './types/entities/workgroup';
|
|
14
13
|
export * from './graphqlApiClient';
|
|
@@ -24,7 +24,6 @@ __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);
|
|
28
27
|
__exportStar(require("./types/entities/vendor"), exports);
|
|
29
28
|
__exportStar(require("./types/entities/workgroup"), exports);
|
|
30
29
|
__exportStar(require("./graphqlApiClient"), exports);
|
|
@@ -4,7 +4,6 @@ import { LicenseBudgetType } from './entities/licenseBudget';
|
|
|
4
4
|
import { PartnertagType } from './entities/partnertag';
|
|
5
5
|
import { SubscribedProgramType } from './entities/program';
|
|
6
6
|
import { SubscriptionType } from './entities/subscription';
|
|
7
|
-
import { UserHistoryType, UserType } from './entities/user';
|
|
8
7
|
import { WorkgroupType } from './entities/workgroup';
|
|
9
8
|
import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema } from './graphqlApiSchemas';
|
|
10
9
|
/**
|
|
@@ -120,8 +119,6 @@ export declare enum SelectDataField {
|
|
|
120
119
|
PARTNERTAG = "partnertag",
|
|
121
120
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
122
121
|
SUBSCRIPTION = "subscription",
|
|
123
|
-
USER = "user",
|
|
124
|
-
USER_HISTORY = "userHistory",
|
|
125
122
|
WORKGROUP = "workgroup"
|
|
126
123
|
}
|
|
127
124
|
export declare type SelectAllResultType = {
|
|
@@ -141,8 +138,6 @@ export declare type SelectAllResponseDataType = {
|
|
|
141
138
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
142
139
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
|
|
143
140
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
|
|
144
|
-
[SelectDataField.USER]?: UserType[];
|
|
145
|
-
[SelectDataField.USER_HISTORY]?: UserHistoryType[];
|
|
146
141
|
[SelectDataField.WORKGROUP]?: WorkgroupType[];
|
|
147
142
|
};
|
|
148
143
|
export declare enum ErrorsField {
|
|
@@ -188,8 +183,6 @@ export declare type SelectOneResponseDataType = {
|
|
|
188
183
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
189
184
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
|
|
190
185
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType;
|
|
191
|
-
[SelectDataField.USER]?: UserType;
|
|
192
|
-
[SelectDataField.USER_HISTORY]?: UserHistoryType;
|
|
193
186
|
[SelectDataField.WORKGROUP]?: WorkgroupType;
|
|
194
187
|
};
|
|
195
188
|
export declare enum QueryVariablesField {
|
|
@@ -99,8 +99,6 @@ var SelectDataField;
|
|
|
99
99
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
100
100
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
101
101
|
SelectDataField["SUBSCRIPTION"] = "subscription";
|
|
102
|
-
SelectDataField["USER"] = "user";
|
|
103
|
-
SelectDataField["USER_HISTORY"] = "userHistory";
|
|
104
102
|
SelectDataField["WORKGROUP"] = "workgroup";
|
|
105
103
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
106
104
|
var ErrorsField;
|
|
@@ -12,7 +12,6 @@ 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';
|
|
16
15
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
17
16
|
declare type MissingFieldsOfCompanySchema = {
|
|
18
17
|
contacts?: ContactsSchema;
|
|
@@ -60,8 +59,6 @@ export declare type ProgramSchema = Schema<ProgramType, boolean>;
|
|
|
60
59
|
export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
|
|
61
60
|
export declare type SubscribedProgramSchema = Schema<SubscribedProgramType, boolean>;
|
|
62
61
|
export declare type SubscriptionSchema = Schema<SubscriptionType, boolean>;
|
|
63
|
-
export declare type UserSchema = Schema<UserType, boolean>;
|
|
64
|
-
export declare type UserHistorySchema = Schema<UserHistoryType, boolean>;
|
|
65
62
|
export declare type VendorSchema = Schema<VendorsType, boolean>;
|
|
66
63
|
export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
|
|
67
64
|
export declare type SelectAllResultSchema = {
|
|
@@ -79,8 +76,6 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
79
76
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
80
77
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
81
78
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
82
|
-
[SelectDataField.USER]?: UserSchema;
|
|
83
|
-
[SelectDataField.USER_HISTORY]?: UserHistorySchema;
|
|
84
79
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
85
80
|
};
|
|
86
81
|
export declare type SelectOneResultSchema = {
|
|
@@ -97,8 +92,6 @@ export declare type SelectOneResponseDataSchema = {
|
|
|
97
92
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
98
93
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
99
94
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
100
|
-
[SelectDataField.USER]?: UserSchema;
|
|
101
|
-
[SelectDataField.USER_HISTORY]?: UserHistorySchema;
|
|
102
95
|
[SelectDataField.WORKGROUP]?: WorkgroupSchema;
|
|
103
96
|
};
|
|
104
97
|
export declare type SelectAllQuerySchema = {
|
|
@@ -223,7 +223,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
223
223
|
/**
|
|
224
224
|
* The path to apply bulk action on license(s)
|
|
225
225
|
*/
|
|
226
|
-
this.BULK_PATH = '/bulk';
|
|
226
|
+
this.BULK_PATH = '/bulk-action';
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Returns the raw result from the find endpoint call
|
|
@@ -313,7 +313,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
313
313
|
return await this.post(postData);
|
|
314
314
|
}
|
|
315
315
|
async bulkAction(bulkData) {
|
|
316
|
+
console.log('old path', this.path);
|
|
317
|
+
console.log('bulk path', this.BULK_PATH);
|
|
316
318
|
this.path = this.BULK_PATH;
|
|
319
|
+
console.log(this.path);
|
|
317
320
|
let postData = {
|
|
318
321
|
[bulkArguments_1.BulkBodyFields.ACTION_TYPE]: bulkData.actionType,
|
|
319
322
|
[bulkArguments_1.BulkBodyFields.LICENSES]: bulkData.licenses,
|
|
@@ -341,6 +344,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
341
344
|
};
|
|
342
345
|
return await this.postFile(payload);
|
|
343
346
|
}
|
|
347
|
+
console.log('postData', postData);
|
|
344
348
|
return await this.post(postData);
|
|
345
349
|
}
|
|
346
350
|
async updateConfig(reference, config) {
|
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.
|
|
7
|
+
"version": "3.115.0-rc.jpb.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,15 +0,0 @@
|
|
|
1
|
-
import { ContactsType } from './contact';
|
|
2
|
-
export declare type UserType = {
|
|
3
|
-
id?: number;
|
|
4
|
-
allowDirectLogin?: boolean;
|
|
5
|
-
contact?: ContactsType;
|
|
6
|
-
validatedAt?: string;
|
|
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
|
-
};
|