@arrowsphere/api-client 3.132.0 → 3.133.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,11 @@
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.133.0] - 2024.08.13
7
+
8
+ ### Added
9
+ - [quotes] Add lastVersion and version in quotes
10
+
6
11
  ## [3.132.0] - 2024.08.12
7
12
 
8
13
  ### Added
@@ -16,3 +16,4 @@ export * from './types/entities/user';
16
16
  export * from './types/entities/vendor';
17
17
  export * from './types/entities/workgroup';
18
18
  export * from './graphqlApiClient';
19
+ export * from './types/entities/quoteVersion';
@@ -32,4 +32,5 @@ __exportStar(require("./types/entities/user"), exports);
32
32
  __exportStar(require("./types/entities/vendor"), exports);
33
33
  __exportStar(require("./types/entities/workgroup"), exports);
34
34
  __exportStar(require("./graphqlApiClient"), exports);
35
+ __exportStar(require("./types/entities/quoteVersion"), exports);
35
36
  //# sourceMappingURL=index.js.map
@@ -37,6 +37,7 @@ declare type BaseCompanyType = {
37
37
  zip?: string;
38
38
  };
39
39
  export declare type EndCustomerType = BaseCompanyType & {
40
+ country?: CountryType;
40
41
  partner?: PartnerType;
41
42
  };
42
43
  declare type CountableType = {
@@ -1,5 +1,6 @@
1
1
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './company';
2
2
  import { GraphqlApiProgramType } from './program';
3
+ import { QuoteVersion } from './quoteVersion';
3
4
  export declare type EavType = {
4
5
  value?: string;
5
6
  };
@@ -11,20 +12,22 @@ export declare type QuoteType = {
11
12
  endCustomer?: EndCustomerType;
12
13
  items?: QuoteItemType[];
13
14
  partner?: PartnerType;
15
+ versions?: QuoteVersion[];
14
16
  promotionCode?: string;
15
17
  reference?: string;
16
18
  status?: string;
17
19
  totalRecurringPrice?: number;
18
20
  updatedAt?: string;
21
+ lastVersion?: QuoteVersion;
19
22
  };
20
23
  export declare type QuoteItemType = {
21
24
  id?: number;
25
+ itemData?: ItemData;
22
26
  name?: string;
23
27
  program?: GraphqlApiProgramType;
24
28
  reference?: string;
25
29
  vendorName?: string;
26
30
  vendorNamesSerialized?: string;
27
- itemData?: ItemData;
28
31
  };
29
32
  export declare type ItemData = {
30
33
  id?: string;
@@ -0,0 +1,8 @@
1
+ import { QuoteItemType } from './quote';
2
+ export declare type QuoteVersion = {
3
+ createdAt?: string;
4
+ id?: number;
5
+ items?: QuoteItemType[];
6
+ updatedAt?: string;
7
+ version?: string;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=quoteVersion.js.map
@@ -16,6 +16,7 @@ import { UserHistoryType, UserType } from './entities/user';
16
16
  import { OrganizationUnitsType } from './entities/organizationUnit';
17
17
  import { CurrencyType } from './entities/currency';
18
18
  import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
19
+ import { QuoteVersion } from './entities/quoteVersion';
19
20
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
20
21
  declare type MissingFieldsOfCompanySchema = {
21
22
  contacts?: ContactsSchema;
@@ -37,6 +38,7 @@ declare type MissingFieldsOfEndCustomerSchema = {
37
38
  orders?: OrdersSchema;
38
39
  partnerTags?: PartnertagSchema;
39
40
  partner?: PartnerSchema;
41
+ country?: CountrySchema;
40
42
  };
41
43
  declare type MissingFieldsOfOrderItemSchema = {
42
44
  priceRates?: SpecialPriceRateSchema;
@@ -59,12 +61,21 @@ declare type MissingFieldsOfQuoteSchema = {
59
61
  endCustomer?: EndCustomerSchema;
60
62
  items?: QuoteItemSchema;
61
63
  partner?: PartnerSchema;
64
+ versions?: QuoteVersionSchema;
65
+ lastVersion?: QuoteVersionSchema;
62
66
  };
63
67
  declare type MissingFieldsOfQuoteItemSchema = {
64
68
  program?: LicenseBudgetNotificationSchema;
65
69
  itemData?: ItemDataSchema;
66
70
  };
67
71
  export declare type QuoteItemSchema = Merge<Schema<QuoteItemType, boolean>, MissingFieldsOfQuoteItemSchema>;
72
+ export declare type QuoteVersionSchema = Merge<Schema<QuoteVersion, boolean>, MissingFieldsOfQuoteVersionSchema>;
73
+ declare type MissingFieldsOfQuoteVersionSchema = {
74
+ items?: QuoteItemSchema;
75
+ };
76
+ declare type MissingFieldsOfCountrySchema = {
77
+ continent?: ContinentSchema;
78
+ };
68
79
  export declare type ItemDataSchema = Schema<ItemData, boolean>;
69
80
  export declare type QuoteSchema = Merge<Schema<QuoteType, boolean>, MissingFieldsOfQuoteSchema>;
70
81
  export declare type ContactsSchema = Merge<Schema<ContactsType, boolean>, MissingFieldsOfContactSchema>;
@@ -77,7 +88,7 @@ export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingF
77
88
  export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
78
89
  export declare type CompanyExtraInformationSchema = Schema<CompanyExtraInformation, boolean>;
79
90
  export declare type ContinentSchema = Schema<ContinentType, boolean>;
80
- export declare type CountrySchema = Schema<CountryType, boolean>;
91
+ export declare type CountrySchema = Merge<Schema<CountryType, boolean>, MissingFieldsOfCountrySchema>;
81
92
  export declare type CurrencySchema = Schema<CurrencyType, boolean>;
82
93
  export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
83
94
  export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
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.132.0",
7
+ "version": "3.133.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",