@arrowsphere/api-client 3.120.0 → 3.121.0-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.
- package/build/graphqlApi/index.d.ts +3 -0
- package/build/graphqlApi/index.js +3 -0
- package/build/graphqlApi/types/entities/company.d.ts +2 -0
- package/build/graphqlApi/types/entities/currency.d.ts +5 -0
- package/build/graphqlApi/types/entities/currency.js +3 -0
- package/build/graphqlApi/types/entities/program.d.ts +2 -2
- package/build/graphqlApi/types/entities/quote.d.ts +27 -0
- package/build/graphqlApi/types/entities/quote.js +3 -0
- package/build/graphqlApi/types/entities/subscription.d.ts +2 -2
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +5 -0
- package/build/graphqlApi/types/graphqlApiQueries.js +2 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +17 -0
- package/build/quotes/quotesClient.d.ts +1 -0
- package/build/quotes/quotesClient.js +4 -0
- package/package.json +1 -1
|
@@ -3,10 +3,13 @@ export * from './types/graphqlApiSchemas';
|
|
|
3
3
|
export * from './types/entities/contact';
|
|
4
4
|
export * from './types/entities/company';
|
|
5
5
|
export * from './types/entities/country';
|
|
6
|
+
export * from './types/entities/currency';
|
|
6
7
|
export * from './types/entities/licenseBudget';
|
|
7
8
|
export * from './types/entities/order';
|
|
8
9
|
export * from './types/entities/organizationUnit';
|
|
9
10
|
export * from './types/entities/partnertag';
|
|
11
|
+
export * from './types/entities/program';
|
|
12
|
+
export * from './types/entities/quote';
|
|
10
13
|
export * from './types/entities/subscription';
|
|
11
14
|
export * from './types/entities/specialPriceRate';
|
|
12
15
|
export * from './types/entities/user';
|
|
@@ -19,10 +19,13 @@ __exportStar(require("./types/graphqlApiSchemas"), exports);
|
|
|
19
19
|
__exportStar(require("./types/entities/contact"), exports);
|
|
20
20
|
__exportStar(require("./types/entities/company"), exports);
|
|
21
21
|
__exportStar(require("./types/entities/country"), exports);
|
|
22
|
+
__exportStar(require("./types/entities/currency"), exports);
|
|
22
23
|
__exportStar(require("./types/entities/licenseBudget"), exports);
|
|
23
24
|
__exportStar(require("./types/entities/order"), exports);
|
|
24
25
|
__exportStar(require("./types/entities/organizationUnit"), exports);
|
|
25
26
|
__exportStar(require("./types/entities/partnertag"), exports);
|
|
27
|
+
__exportStar(require("./types/entities/program"), exports);
|
|
28
|
+
__exportStar(require("./types/entities/quote"), exports);
|
|
26
29
|
__exportStar(require("./types/entities/subscription"), exports);
|
|
27
30
|
__exportStar(require("./types/entities/specialPriceRate"), exports);
|
|
28
31
|
__exportStar(require("./types/entities/user"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContactsType } from './contact';
|
|
2
2
|
import { CountryType } from './country';
|
|
3
|
+
import { CurrencyType } from './currency';
|
|
3
4
|
import { OrdersType } from './order';
|
|
4
5
|
import { PartnertagType } from './partnertag';
|
|
5
6
|
import { SubscribedProgramType } from './program';
|
|
@@ -55,6 +56,7 @@ export declare type CompanyExtraInformation = {
|
|
|
55
56
|
export declare type PartnerType = BaseCompanyType & {
|
|
56
57
|
contactsCount?: CountableType;
|
|
57
58
|
country?: CountryType;
|
|
59
|
+
currency?: CurrencyType;
|
|
58
60
|
customersCount?: CountableType;
|
|
59
61
|
ordersCount?: CountableType;
|
|
60
62
|
ordersNeedCount?: CountableType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PartnerType } from './company';
|
|
2
2
|
import { SubscriptionType } from './subscription';
|
|
3
3
|
import { VendorsType } from './vendor';
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type GraphqlApiProgramType = {
|
|
5
5
|
id?: number;
|
|
6
6
|
internalName?: string;
|
|
7
7
|
name?: string;
|
|
@@ -15,7 +15,7 @@ export declare type SubscribedProgramType = {
|
|
|
15
15
|
internalName?: string;
|
|
16
16
|
subscriptionEndedAt?: string;
|
|
17
17
|
partner?: PartnerType;
|
|
18
|
-
program?:
|
|
18
|
+
program?: GraphqlApiProgramType;
|
|
19
19
|
subscription?: SubscriptionType;
|
|
20
20
|
vendor?: VendorsType;
|
|
21
21
|
vendorCode?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
|
|
2
|
+
import { GraphqlApiProgramType } from './program';
|
|
3
|
+
export declare type EavType = {
|
|
4
|
+
value?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type QuoteType = {
|
|
7
|
+
id?: number;
|
|
8
|
+
arrowCompany?: ArrowCompanyType;
|
|
9
|
+
commitmentAmountTotal?: number;
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
endCustomer?: EndCustomerType;
|
|
12
|
+
items?: QuoteItemType[];
|
|
13
|
+
partner?: PartnerType;
|
|
14
|
+
promotionCode?: string;
|
|
15
|
+
reference?: string;
|
|
16
|
+
status?: string;
|
|
17
|
+
totalRecurringPrice?: number;
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type QuoteItemType = {
|
|
21
|
+
id?: number;
|
|
22
|
+
name?: string;
|
|
23
|
+
program?: GraphqlApiProgramType;
|
|
24
|
+
reference?: string;
|
|
25
|
+
vendorName?: string;
|
|
26
|
+
vendorNamesSerialized?: string;
|
|
27
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PartnerType } from './company';
|
|
2
2
|
import { ContactsType } from './contact';
|
|
3
|
-
import {
|
|
3
|
+
import { GraphqlApiProgramType } from './program';
|
|
4
4
|
export declare type SubscriptionType = {
|
|
5
5
|
id?: number;
|
|
6
6
|
company?: PartnerType;
|
|
7
7
|
localContact?: ContactsType;
|
|
8
|
-
program?:
|
|
8
|
+
program?: GraphqlApiProgramType;
|
|
9
9
|
};
|
|
@@ -3,6 +3,7 @@ import { ContinentType, CountryType } from './entities/country';
|
|
|
3
3
|
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
4
4
|
import { PartnertagType } from './entities/partnertag';
|
|
5
5
|
import { SubscribedProgramType } from './entities/program';
|
|
6
|
+
import { QuoteType } from './entities/quote';
|
|
6
7
|
import { SubscriptionType } from './entities/subscription';
|
|
7
8
|
import { UserHistoryType, UserType } from './entities/user';
|
|
8
9
|
import { WorkgroupType } from './entities/workgroup';
|
|
@@ -118,10 +119,12 @@ export declare enum SelectDataField {
|
|
|
118
119
|
LICENSE_BUDGET = "licenseBudget",
|
|
119
120
|
PARTNER = "partner",
|
|
120
121
|
PARTNERTAG = "partnertag",
|
|
122
|
+
QUOTE = "quote",
|
|
121
123
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
122
124
|
SUBSCRIPTION = "subscription",
|
|
123
125
|
USER = "user",
|
|
124
126
|
USER_HISTORY = "userHistory",
|
|
127
|
+
VENDOR = "vendor",
|
|
125
128
|
WORKGROUP = "workgroup"
|
|
126
129
|
}
|
|
127
130
|
export declare type SelectAllResultType = {
|
|
@@ -139,6 +142,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
139
142
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
|
|
140
143
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
141
144
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
145
|
+
[SelectDataField.QUOTE]?: QuoteType[];
|
|
142
146
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
|
|
143
147
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
|
|
144
148
|
[SelectDataField.USER]?: UserType[];
|
|
@@ -186,6 +190,7 @@ export declare type SelectOneResponseDataType = {
|
|
|
186
190
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
|
|
187
191
|
[SelectDataField.PARTNER]?: PartnerType;
|
|
188
192
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
193
|
+
[SelectDataField.QUOTE]?: QuoteType;
|
|
189
194
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
|
|
190
195
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionType;
|
|
191
196
|
[SelectDataField.USER]?: UserType;
|
|
@@ -97,10 +97,12 @@ var SelectDataField;
|
|
|
97
97
|
SelectDataField["LICENSE_BUDGET"] = "licenseBudget";
|
|
98
98
|
SelectDataField["PARTNER"] = "partner";
|
|
99
99
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
100
|
+
SelectDataField["QUOTE"] = "quote";
|
|
100
101
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
101
102
|
SelectDataField["SUBSCRIPTION"] = "subscription";
|
|
102
103
|
SelectDataField["USER"] = "user";
|
|
103
104
|
SelectDataField["USER_HISTORY"] = "userHistory";
|
|
105
|
+
SelectDataField["VENDOR"] = "vendor";
|
|
104
106
|
SelectDataField["WORKGROUP"] = "workgroup";
|
|
105
107
|
})(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
|
|
106
108
|
var ErrorsField;
|
|
@@ -14,9 +14,12 @@ import { SubscribedProgramType } from './entities/program';
|
|
|
14
14
|
import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
|
|
15
15
|
import { UserHistoryType, UserType } from './entities/user';
|
|
16
16
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
17
|
+
import { CurrencyType } from './entities/currency';
|
|
18
|
+
import { QuoteItemType, QuoteType } from './entities/quote';
|
|
17
19
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
18
20
|
declare type MissingFieldsOfCompanySchema = {
|
|
19
21
|
contacts?: ContactsSchema;
|
|
22
|
+
currency?: CurrencySchema;
|
|
20
23
|
extraInformations?: CompanyExtraInformationSchema;
|
|
21
24
|
orders?: OrdersSchema;
|
|
22
25
|
partnerTags?: PartnertagSchema;
|
|
@@ -51,6 +54,17 @@ declare type MissingFieldsOfUserSchema = {
|
|
|
51
54
|
declare type MissingFieldsOfLicenseBudgetSchema = {
|
|
52
55
|
notifications?: LicenseBudgetNotificationSchema;
|
|
53
56
|
};
|
|
57
|
+
declare type MissingFieldsOfQuoteSchema = {
|
|
58
|
+
arrowCompany?: ArrowCompanySchema;
|
|
59
|
+
endCustomer?: EndCustomerSchema;
|
|
60
|
+
items?: QuoteItemSchema;
|
|
61
|
+
partner?: PartnerSchema;
|
|
62
|
+
};
|
|
63
|
+
declare type MissingFieldsOfQuoteItemSchema = {
|
|
64
|
+
program?: LicenseBudgetNotificationSchema;
|
|
65
|
+
};
|
|
66
|
+
export declare type QuoteItemSchema = Merge<Schema<QuoteItemType, boolean>, MissingFieldsOfQuoteItemSchema>;
|
|
67
|
+
export declare type QuoteSchema = Merge<Schema<QuoteType, boolean>, MissingFieldsOfQuoteSchema>;
|
|
54
68
|
export declare type ContactsSchema = Merge<Schema<ContactsType, boolean>, MissingFieldsOfContactSchema>;
|
|
55
69
|
export declare type UserSchema = Merge<Schema<UserType, boolean>, MissingFieldsOfUserSchema>;
|
|
56
70
|
export declare type LicenseBudgetSchema = Merge<Schema<LicenseBudgetType, boolean>, MissingFieldsOfLicenseBudgetSchema>;
|
|
@@ -62,6 +76,7 @@ export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>
|
|
|
62
76
|
export declare type CompanyExtraInformationSchema = Schema<CompanyExtraInformation, boolean>;
|
|
63
77
|
export declare type ContinentSchema = Schema<ContinentType, boolean>;
|
|
64
78
|
export declare type CountrySchema = Schema<CountryType, boolean>;
|
|
79
|
+
export declare type CurrencySchema = Schema<CurrencyType, boolean>;
|
|
65
80
|
export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
66
81
|
export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
|
|
67
82
|
export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
|
|
@@ -86,6 +101,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
86
101
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
|
|
87
102
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
88
103
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
104
|
+
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
89
105
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
90
106
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
91
107
|
[SelectDataField.USER]?: UserSchema;
|
|
@@ -104,6 +120,7 @@ export declare type SelectOneResponseDataSchema = {
|
|
|
104
120
|
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
|
|
105
121
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
106
122
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
123
|
+
[SelectDataField.QUOTE]?: QuoteSchema;
|
|
107
124
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
108
125
|
[SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
|
|
109
126
|
[SelectDataField.USER]?: UserSchema;
|
|
@@ -17,4 +17,5 @@ export declare type RequestQuoteRequestType = {
|
|
|
17
17
|
export declare class QuotesClient extends AbstractRestfulClient {
|
|
18
18
|
protected basePath: string;
|
|
19
19
|
requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
20
|
+
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
20
21
|
}
|
|
@@ -13,6 +13,10 @@ class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
13
13
|
this.path = '/request';
|
|
14
14
|
return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
|
|
15
15
|
}
|
|
16
|
+
async deleteQuote(quoteReference, parameters = {}) {
|
|
17
|
+
this.path = `/${quoteReference}`;
|
|
18
|
+
return await this.delete(parameters);
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
exports.QuotesClient = QuotesClient;
|
|
18
22
|
//# sourceMappingURL=quotesClient.js.map
|
package/package.json
CHANGED