@arrowsphere/api-client 3.26.0-rc.bjp.1 → 3.26.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/abstractClient.d.ts +8 -1
  3. package/build/abstractEntity.js +16 -14
  4. package/build/axiosSingleton.js +2 -2
  5. package/build/campaign/entities/campaign/banners/banners.js +34 -32
  6. package/build/campaign/entities/campaign/campaign.js +53 -51
  7. package/build/campaign/entities/campaign/landingPage/landingPage.js +26 -24
  8. package/build/campaign/entities/campaign/landingPage/landingPageBody.js +37 -35
  9. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +31 -29
  10. package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +25 -23
  11. package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +31 -29
  12. package/build/campaign/entities/campaign/rules/rules.js +31 -29
  13. package/build/campaign/entities/campaignAssets/assets/assets.js +19 -17
  14. package/build/campaign/entities/campaignAssets/campaignAssets.js +16 -14
  15. package/build/campaign/entities/v2/campaign/banner/banner.js +34 -32
  16. package/build/campaign/entities/v2/campaign/campaign.js +50 -48
  17. package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +26 -24
  18. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +36 -34
  19. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +22 -20
  20. package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +34 -32
  21. package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +34 -32
  22. package/build/campaign/entities/v2/campaignList.js +16 -14
  23. package/build/campaign/index.js +1 -5
  24. package/build/cart/entities/index.js +1 -5
  25. package/build/cart/entities/item.js +28 -26
  26. package/build/cart/entities/itemList.js +16 -14
  27. package/build/cart/index.js +1 -5
  28. package/build/catalog/catalogGraphQLClient.d.ts +0 -2
  29. package/build/catalog/catalogGraphQLClient.js +1 -7
  30. package/build/catalog/index.js +1 -5
  31. package/build/catalog/types/catalogGraphQLTypes.js +0 -1
  32. package/build/consumption/entities/bi/consumptionBI.js +30 -28
  33. package/build/consumption/entities/bi/period/period.js +19 -17
  34. package/build/consumption/entities/bi/top/top.js +25 -23
  35. package/build/consumption/entities/consumption/consumption.js +19 -17
  36. package/build/consumption/index.js +1 -5
  37. package/build/contact/entities/contact.js +46 -44
  38. package/build/contact/entities/contactCreate.js +16 -14
  39. package/build/contact/entities/contactList.js +16 -14
  40. package/build/contact/index.js +1 -5
  41. package/build/customers/entities/customers/contact/contact.js +31 -29
  42. package/build/customers/entities/customers/customer.js +73 -71
  43. package/build/customers/entities/customers/customerContact/customerContact.js +40 -38
  44. package/build/customers/entities/customers/customerContact/customerContactList.js +16 -14
  45. package/build/customers/entities/customers/details/details.js +31 -29
  46. package/build/customers/entities/dataCustomers.js +16 -14
  47. package/build/customers/entities/dataInvitation.js +31 -29
  48. package/build/customers/entities/invitations/company/company.js +16 -14
  49. package/build/customers/entities/invitations/contact/invitationContact.js +28 -26
  50. package/build/customers/index.js +1 -5
  51. package/build/exception/index.js +1 -5
  52. package/build/general/entities/whoAmI.js +61 -59
  53. package/build/general/index.js +1 -5
  54. package/build/getResult.js +23 -21
  55. package/build/index.d.ts +1 -0
  56. package/build/index.js +2 -5
  57. package/build/licenses/entities/filterFindResult.js +19 -17
  58. package/build/licenses/entities/findResult.js +38 -36
  59. package/build/licenses/entities/getLicense/actionMessagesGetResult.js +28 -26
  60. package/build/licenses/entities/getLicense/actionsGetResult.js +43 -41
  61. package/build/licenses/entities/getLicense/buySellFindResult.js +19 -17
  62. package/build/licenses/entities/getLicense/licenseGetResult.js +107 -105
  63. package/build/licenses/entities/getLicense/licensePriceGetResult.js +22 -20
  64. package/build/licenses/entities/getLicense/orderGetResult.js +19 -17
  65. package/build/licenses/entities/getResult/getLicenseResult.js +16 -14
  66. package/build/licenses/entities/history/actionHistoryResult.js +25 -23
  67. package/build/licenses/entities/history/licenceHistoryResult.js +16 -14
  68. package/build/licenses/entities/license/activeSeatsFindResult.js +19 -17
  69. package/build/licenses/entities/license/configFindResult.js +22 -20
  70. package/build/licenses/entities/license/licenseFindResult.js +136 -134
  71. package/build/licenses/entities/license/priceFindResult.js +28 -26
  72. package/build/licenses/entities/license/warningFindResult.js +19 -17
  73. package/build/licenses/entities/offer/actionFlagsFindResult.js +22 -20
  74. package/build/licenses/entities/offer/offerFindResult.js +34 -32
  75. package/build/licenses/entities/offer/priceBandFindResult.js +37 -35
  76. package/build/licenses/entities/offer/priceband/billingFindResult.js +22 -20
  77. package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +16 -14
  78. package/build/licenses/entities/offer/priceband/identifiersFindResult.js +16 -14
  79. package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +28 -26
  80. package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +22 -20
  81. package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +19 -17
  82. package/build/licenses/index.js +1 -5
  83. package/build/orders/entities/dataListOrders.js +16 -14
  84. package/build/orders/entities/orders/order.js +41 -39
  85. package/build/orders/entities/orders/partner/partner.js +19 -17
  86. package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +16 -14
  87. package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +16 -14
  88. package/build/orders/entities/orders/products/prices/productPrices.js +34 -32
  89. package/build/orders/entities/orders/products/products.js +58 -56
  90. package/build/orders/entities/orders/products/program/productProgram.js +16 -14
  91. package/build/orders/entities/referenceLink.js +19 -17
  92. package/build/orders/index.js +1 -5
  93. package/build/pagination.js +31 -29
  94. package/build/publicApiClient.d.ts +2 -0
  95. package/build/publicApiClient.js +7 -0
  96. package/build/security/index.js +1 -5
  97. package/build/security/register/entity/registrationLink.js +16 -14
  98. package/build/security/register/index.js +1 -5
  99. package/build/security/standards/entities/checks/checks.js +19 -17
  100. package/build/security/standards/entities/checks/securityChecks.js +40 -38
  101. package/build/security/standards/entities/resources/resources.js +28 -26
  102. package/build/security/standards/entities/resources/securityResources.js +19 -17
  103. package/build/security/standards/entities/standards/securityStandards.js +31 -29
  104. package/build/security/standards/entities/standards/standards.js +19 -17
  105. package/build/security/standards/index.js +1 -5
  106. package/build/shared/index.js +1 -5
  107. package/build/subscriptions/entities/subscription.js +58 -56
  108. package/build/subscriptions/entities/subscriptionsListResult.js +41 -39
  109. package/build/subscriptions/index.js +1 -5
  110. package/build/supportCenter/entities/issue/attachment.d.ts +29 -0
  111. package/build/supportCenter/entities/issue/attachment.js +76 -0
  112. package/build/supportCenter/entities/issue/comment.d.ts +30 -0
  113. package/build/supportCenter/entities/issue/comment.js +82 -0
  114. package/build/supportCenter/entities/issue/issue.d.ts +142 -0
  115. package/build/supportCenter/entities/issue/issue.js +315 -0
  116. package/build/supportCenter/entities/topic.d.ts +32 -0
  117. package/build/supportCenter/entities/topic.js +83 -0
  118. package/build/supportCenter/index.d.ts +8 -0
  119. package/build/supportCenter/index.js +21 -0
  120. package/build/supportCenter/payloads/attachment.d.ts +6 -0
  121. package/build/supportCenter/payloads/attachment.js +4 -0
  122. package/build/supportCenter/payloads/comment.d.ts +6 -0
  123. package/build/supportCenter/payloads/comment.js +4 -0
  124. package/build/supportCenter/payloads/issue.d.ts +32 -0
  125. package/build/supportCenter/payloads/issue.js +16 -0
  126. package/build/supportCenter/supportCenterClient.d.ts +42 -0
  127. package/build/supportCenter/supportCenterClient.js +68 -0
  128. package/package.json +3 -6
  129. package/build/catalog/types/catalogGraphQLQueries.d.ts +0 -12
  130. package/build/catalog/types/catalogGraphQLQueries.js +0 -3
  131. package/build/catalog/types/catalogGraphQLSchemas.d.ts +0 -30
  132. package/build/catalog/types/catalogGraphQLSchemas.js +0 -4
  133. package/build/catalog/types/queryArguments.d.ts +0 -42
  134. package/build/catalog/types/queryArguments.js +0 -9
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.26.0-rc.bjp.1",
7
+ "version": "3.26.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",
@@ -58,8 +58,8 @@
58
58
  "sinon": "9.2.4",
59
59
  "sinon-chai": "3.5.0",
60
60
  "source-map-support": "0.5.19",
61
- "ts-node": "10.9.1",
62
- "typescript": "4.7.4"
61
+ "ts-node": "9.1.1",
62
+ "typescript": "4.1.5"
63
63
  },
64
64
  "husky": {
65
65
  "hooks": {
@@ -84,10 +84,7 @@
84
84
  "axios": "1.1.3",
85
85
  "graphql": "^16.3.0",
86
86
  "graphql-request": "4.2.0",
87
- "json-to-graphql-query": "^2.2.5",
88
87
  "lodash": "^4.17.21",
89
- "slashes": "^3.0.12",
90
- "type-fest": "^3.8.0",
91
88
  "validatorjs": "3.22.1"
92
89
  }
93
90
  }
@@ -1,12 +0,0 @@
1
- import { QueryArguments } from './queryArguments';
2
- import { FiltersSchema, PaginationSchema, ProductSchema } from './catalogGraphQLSchemas';
3
- export declare type CatalogQuery = {
4
- getProducts: GetPaginatedProductsQuery;
5
- };
6
- export declare type GetPaginatedProductsQuery = {
7
- __args: QueryArguments;
8
- filters?: FiltersSchema;
9
- pagination?: PaginationSchema;
10
- products?: ProductSchema;
11
- topOffers?: ProductSchema;
12
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=catalogGraphQLQueries.js.map
@@ -1,30 +0,0 @@
1
- import { AttributeType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, RelatedOfferType } from './catalogGraphQLTypes';
2
- import { Merge, Schema } from 'type-fest';
3
- export declare type PaginationSchema = Schema<PaginationType, boolean>;
4
- export declare type FiltersSchema = Schema<FiltersType, boolean>;
5
- declare type IdentifiersSchema = Schema<IdentifiersType, boolean>;
6
- declare type RelatedOfferSchema = Schema<RelatedOfferType, boolean>;
7
- /**
8
- * Field of type array are not handled by Schema<>, they must be overwritten
9
- */
10
- declare type MissingFieldsOfProductSchema = {
11
- addonPrimaries?: IdentifiersSchema;
12
- baseOfferPrimaries?: IdentifiersSchema;
13
- conversionOfferPrimaries?: IdentifiersSchema;
14
- relatedOffers?: RelatedOfferSchema;
15
- priceBand?: PriceBandSchema;
16
- };
17
- export declare type ProductSchema = Merge<Schema<ProductType, boolean>, MissingFieldsOfProductSchema>;
18
- declare type AttributeSchema = Schema<AttributeType, boolean>;
19
- /**
20
- * Field of type array are not handled by Schema, they must be overwritten
21
- */
22
- declare type MissingFieldsOfPriceBandSchema = {
23
- attributes?: Array<AttributeSchema>;
24
- };
25
- /**
26
- * No type corresponding
27
- */
28
- export declare type PriceBandSchema = Merge<Schema<PriceBandType, boolean>, MissingFieldsOfPriceBandSchema>;
29
- export declare type PriceBandPriceSchema = Schema<PricesType, boolean>;
30
- export {};
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Here are the schemas, they are useful to build the graphql requests
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=catalogGraphQLSchemas.js.map
@@ -1,42 +0,0 @@
1
- /**
2
- * For field __args
3
- */
4
- export declare type QueryArguments = {
5
- paginate?: PaginateArgument;
6
- searchBody: SearchBodyArgument;
7
- };
8
- export declare type PaginateArgument = {
9
- page: number;
10
- perPage: number;
11
- };
12
- export declare type SearchBodyArgument = {
13
- aggregatorFilter?: string[];
14
- endCustomerRef?: string;
15
- exclusionFilters?: SearchFilterArgument[];
16
- filters?: SearchFilterArgument[];
17
- getFamilies?: boolean;
18
- highlight?: boolean;
19
- keywords?: string;
20
- marketplace?: string;
21
- quantity?: number;
22
- resellerRef?: string;
23
- restricted?: boolean;
24
- sort?: SortArgument;
25
- topOffers?: boolean;
26
- };
27
- export declare type SearchFilterArgument = {
28
- name: string;
29
- value: string | string[];
30
- operator?: OperatorArgument;
31
- filters?: SearchFilterArgument[];
32
- };
33
- declare enum OperatorArgument {
34
- OR = "OR",
35
- AND = "AND",
36
- BETWEEN = "BETWEEN"
37
- }
38
- export declare type SortArgument = {
39
- name?: string;
40
- order?: string;
41
- };
42
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var OperatorArgument;
4
- (function (OperatorArgument) {
5
- OperatorArgument["OR"] = "OR";
6
- OperatorArgument["AND"] = "AND";
7
- OperatorArgument["BETWEEN"] = "BETWEEN";
8
- })(OperatorArgument || (OperatorArgument = {}));
9
- //# sourceMappingURL=queryArguments.js.map