@arrowsphere/api-client 3.21.0 → 3.22.0-rc.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/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.22.0] - 2023-03-15
7
+
8
+ ### Changed
9
+
10
+ - Add license event types
11
+
6
12
  ## [3.21.0] - 2023-03-06
7
13
 
8
14
  ### Changed
@@ -0,0 +1,65 @@
1
+ export declare enum LicenseEventActionType {
2
+ AUTO_RENEW_OFF = "autoRenewOff",
3
+ AUTO_RENEW_ON = "autoRenewOn",
4
+ CANCELLED = "cancelled",
5
+ CREATION = "creation",
6
+ DISABLED = "disabled",
7
+ EXPIRED = "expired",
8
+ QUANTITY_UPDATE = "quantityUpdate",
9
+ REACTIVATED = "reactivated",
10
+ RENEW = "renew",
11
+ SUSPENDED = "suspended"
12
+ }
13
+ export interface LicenseEventVendor {
14
+ name: string;
15
+ code: string;
16
+ }
17
+ export interface LicenseEventCustomer {
18
+ name: string;
19
+ ref: string;
20
+ }
21
+ export interface LicenseEventReseller {
22
+ name: string;
23
+ ref: string;
24
+ }
25
+ export interface LicenseEventPriceband {
26
+ vendorSku: string;
27
+ arrowsphereSku: string;
28
+ }
29
+ export interface LicenseEventOffer {
30
+ arrowsphereSku: string;
31
+ name: string;
32
+ }
33
+ export interface LicenseEventQuantity {
34
+ current: number;
35
+ requested: number;
36
+ }
37
+ export interface LicenseEventUser {
38
+ name: string;
39
+ email: string;
40
+ }
41
+ export interface LicenseEventDetails {
42
+ message: string;
43
+ }
44
+ export interface LicenseEvent {
45
+ id: number;
46
+ partnerRef: string;
47
+ orderRef: string;
48
+ createdAt: string;
49
+ customer: LicenseEventCustomer;
50
+ reseller: LicenseEventReseller;
51
+ marketplace: string;
52
+ friendlyName: string;
53
+ vendor: LicenseEventVendor;
54
+ priceband: LicenseEventPriceband;
55
+ offer: LicenseEventOffer;
56
+ uom: string;
57
+ periodicity: number;
58
+ term: number;
59
+ trial: boolean;
60
+ quantity: LicenseEventQuantity;
61
+ statusCode: string;
62
+ user: LicenseEventUser;
63
+ actionType: LicenseEventActionType;
64
+ eventDetails: LicenseEventDetails;
65
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LicenseEventActionType = void 0;
4
+ var LicenseEventActionType;
5
+ (function (LicenseEventActionType) {
6
+ LicenseEventActionType["AUTO_RENEW_OFF"] = "autoRenewOff";
7
+ LicenseEventActionType["AUTO_RENEW_ON"] = "autoRenewOn";
8
+ LicenseEventActionType["CANCELLED"] = "cancelled";
9
+ LicenseEventActionType["CREATION"] = "creation";
10
+ LicenseEventActionType["DISABLED"] = "disabled";
11
+ LicenseEventActionType["EXPIRED"] = "expired";
12
+ LicenseEventActionType["QUANTITY_UPDATE"] = "quantityUpdate";
13
+ LicenseEventActionType["REACTIVATED"] = "reactivated";
14
+ LicenseEventActionType["RENEW"] = "renew";
15
+ LicenseEventActionType["SUSPENDED"] = "suspended";
16
+ })(LicenseEventActionType = exports.LicenseEventActionType || (exports.LicenseEventActionType = {}));
17
+ //# sourceMappingURL=licenseEvent.js.map
@@ -0,0 +1,29 @@
1
+ import { LicenseEvent } from './licenseEvent';
2
+ export interface LicenseEventPagination {
3
+ perPage: number;
4
+ currentPage: number;
5
+ totalPage: number;
6
+ total: number;
7
+ next: string;
8
+ previous: string;
9
+ }
10
+ export interface PaginatedLicenseEvents {
11
+ filters: LicenseEventFilters[];
12
+ pagination: LicenseEventPagination;
13
+ events: Array<{
14
+ event: LicenseEvent;
15
+ }>;
16
+ }
17
+ export interface LicenseEventFilters {
18
+ name: string;
19
+ values: LicenseEventFiltersValues[];
20
+ }
21
+ export interface LicenseEventFiltersValues {
22
+ value: string;
23
+ count: number;
24
+ }
25
+ export interface LicenseEventQueryResponse {
26
+ data: {
27
+ getEvents: PaginatedLicenseEvents;
28
+ };
29
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=licenseEventGraphQL.js.map
@@ -1,3 +1,5 @@
1
+ export * from './entities/event/licenseEvent';
2
+ export * from './entities/event/licenseEventGraphQL';
1
3
  export * from './entities/filterFindResult';
2
4
  export * from './entities/findResult';
3
5
  export * from './entities/getLicense/actionMessagesGetResult';
@@ -10,6 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./entities/event/licenseEvent"), exports);
14
+ __exportStar(require("./entities/event/licenseEventGraphQL"), exports);
13
15
  __exportStar(require("./entities/filterFindResult"), exports);
14
16
  __exportStar(require("./entities/findResult"), exports);
15
17
  __exportStar(require("./entities/getLicense/actionMessagesGetResult"), exports);
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.21.0",
7
+ "version": "3.22.0-rc.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",