@arrowsphere/api-client 3.121.0-rc.lth.1 → 3.121.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.121.0] - 2024.06.12
7
+
8
+ ### Added
9
+ - [quotes] Adds endpoint to delete quote
10
+ - [graphql-api] Adds quote entity
11
+
6
12
  ## [3.120.0] - 2024.06.11
7
13
 
8
14
  ### Added
@@ -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;
@@ -0,0 +1,5 @@
1
+ export declare type CurrencyType = {
2
+ id?: number;
3
+ name?: string;
4
+ symbol?: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=currency.js.map
@@ -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 ProgramType = {
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?: ProgramType;
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
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=quote.js.map
@@ -1,9 +1,9 @@
1
1
  import { PartnerType } from './company';
2
2
  import { ContactsType } from './contact';
3
- import { ProgramType } from './program';
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?: ProgramType;
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,6 +119,7 @@ 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",
@@ -139,6 +141,7 @@ export declare type SelectAllResponseDataType = {
139
141
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
140
142
  [SelectDataField.PARTNER]?: PartnerType[];
141
143
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
144
+ [SelectDataField.QUOTE]?: QuoteType[];
142
145
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
143
146
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
144
147
  [SelectDataField.USER]?: UserType[];
@@ -186,6 +189,7 @@ export declare type SelectOneResponseDataType = {
186
189
  [SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
187
190
  [SelectDataField.PARTNER]?: PartnerType;
188
191
  [SelectDataField.PARTNERTAG]?: PartnertagType;
192
+ [SelectDataField.QUOTE]?: QuoteType;
189
193
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
190
194
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType;
191
195
  [SelectDataField.USER]?: UserType;
@@ -97,6 +97,7 @@ 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";
@@ -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;
@@ -39,8 +39,7 @@ export declare enum CreateOrderInputFields {
39
39
  COLUMN_EXTRA_INFORMATION = "extraInformation",
40
40
  COLUMN_COTERMINOSITY_DATE = "coterminosityDate",
41
41
  COLUMN_COTERMINOSITY_SUBSCRIPTION_REF = "coterminositySubscriptionRef",
42
- COLUMN_PROMOTION_ID = "promotionId",
43
- COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
42
+ COLUMN_PROMOTION_ID = "promotionId"
44
43
  }
45
44
  export declare enum scenarioType {
46
45
  INJECTION = "injection",
@@ -62,7 +61,6 @@ export declare type CreateOrderInputType = {
62
61
  };
63
62
  };
64
63
  };
65
- [CreateOrderInputFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
66
64
  };
67
65
  export declare type CreateOrderProductType = {
68
66
  [CreateOrderInputFields.COLUMN_ARROW_SPHERE_PRICE_BAND_SKU]?: string;
@@ -44,7 +44,6 @@ var CreateOrderInputFields;
44
44
  CreateOrderInputFields["COLUMN_COTERMINOSITY_DATE"] = "coterminosityDate";
45
45
  CreateOrderInputFields["COLUMN_COTERMINOSITY_SUBSCRIPTION_REF"] = "coterminositySubscriptionRef";
46
46
  CreateOrderInputFields["COLUMN_PROMOTION_ID"] = "promotionId";
47
- CreateOrderInputFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
48
47
  })(CreateOrderInputFields = exports.CreateOrderInputFields || (exports.CreateOrderInputFields = {}));
49
48
  var scenarioType;
50
49
  (function (scenarioType) {
@@ -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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.121.0-rc.lth.1",
7
+ "version": "3.121.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",