@arrowsphere/api-client 3.70.1-rc.ckh.1 → 3.70.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,11 +3,10 @@
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.70.1] - 2023-11-30
6
+ ## [3.70.1] - 2023-11-29
7
7
 
8
8
  ### Fixed
9
- - Fix update issue support center
10
-
9
+ - Fixes licenses event schema
11
10
 
12
11
  ## [3.70.0] - 2023-11-28
13
12
 
@@ -41,57 +41,57 @@ export declare enum LicenseEventStatusCode {
41
41
  }
42
42
  export declare const LicenseEventStatusActionCodes: Partial<Record<LicenseEventStatusCode, LicenseEventType>>;
43
43
  export interface LicenseEventVendor {
44
- name: string;
45
- code: string;
44
+ name?: string;
45
+ code?: string;
46
46
  }
47
47
  export interface LicenseEventCustomer {
48
- name: string;
49
- ref: string;
48
+ name?: string;
49
+ ref?: string;
50
50
  }
51
51
  export interface LicenseEventReseller {
52
- name: string;
53
- ref: string;
52
+ name?: string;
53
+ ref?: string;
54
54
  }
55
55
  export interface LicenseEventPriceband {
56
- vendorSku: string;
57
- arrowsphereSku: string;
56
+ vendorSku?: string;
57
+ arrowsphereSku?: string;
58
58
  }
59
59
  export interface LicenseEventOffer {
60
- arrowsphereSku: string;
61
- name: string;
60
+ arrowsphereSku?: string;
61
+ name?: string;
62
62
  isManualProvisioning?: boolean | null;
63
63
  }
64
64
  export interface LicenseEventQuantity {
65
- current: number;
66
- requested: number | null;
65
+ current?: number;
66
+ requested?: number | null;
67
67
  }
68
68
  export interface LicenseEventUser {
69
- name: string;
70
- email: string;
69
+ name?: string;
70
+ email?: string;
71
71
  }
72
72
  export interface LicenseEventDetails {
73
- message: string;
74
- source: string | null;
73
+ message?: string;
74
+ source?: string | null;
75
75
  }
76
76
  export interface LicenseEvent {
77
- id: number;
78
- partnerRef: string;
79
- orderRef: string;
80
- createdAt: string;
81
- customer: LicenseEventCustomer;
82
- reseller: LicenseEventReseller;
83
- marketplace: string;
84
- friendlyName: string;
85
- vendor: LicenseEventVendor;
86
- priceband: LicenseEventPriceband;
87
- offer: LicenseEventOffer;
88
- uom: string;
89
- periodicity: number;
90
- term: number;
91
- trial: boolean;
92
- quantity: LicenseEventQuantity;
93
- statusCode: string;
94
- user: LicenseEventUser;
95
- actionType: LicenseEventActionType;
96
- eventDetails: LicenseEventDetails;
77
+ id?: number;
78
+ partnerRef?: string;
79
+ orderRef?: string;
80
+ createdAt?: string;
81
+ customer?: LicenseEventCustomer;
82
+ reseller?: LicenseEventReseller;
83
+ marketplace?: string;
84
+ friendlyName?: string;
85
+ vendor?: LicenseEventVendor;
86
+ priceband?: LicenseEventPriceband;
87
+ offer?: LicenseEventOffer;
88
+ uom?: string;
89
+ periodicity?: number;
90
+ term?: number;
91
+ trial?: boolean;
92
+ quantity?: LicenseEventQuantity;
93
+ statusCode?: string;
94
+ user?: LicenseEventUser;
95
+ actionType?: LicenseEventActionType;
96
+ eventDetails?: LicenseEventDetails;
97
97
  }
@@ -1,16 +1,16 @@
1
1
  import { LicenseEvent } from './licenseEvent';
2
2
  export interface LicenseEventPagination {
3
- perPage: number;
4
- currentPage: number;
5
- totalPage: number;
6
- total: number;
7
- next: string;
8
- previous: string;
3
+ perPage?: number;
4
+ currentPage?: number;
5
+ totalPage?: number;
6
+ total?: number;
7
+ next?: string;
8
+ previous?: string;
9
9
  }
10
10
  export interface PaginatedLicenseEvents {
11
- filters: LicenseEventFilters[];
12
- pagination: LicenseEventPagination;
13
- events: Array<{
11
+ filters?: LicenseEventFilters[];
12
+ pagination?: LicenseEventPagination;
13
+ events?: Array<{
14
14
  event: LicenseEvent;
15
15
  }>;
16
16
  }
@@ -80,12 +80,10 @@ export declare type LicensesEventGetEventsQueryType = {
80
80
  };
81
81
  };
82
82
  export declare type LicensesEventGetEventsResponseType = {
83
- [LicensesEventGetEventsResponseField.DATA]: {
84
- [LicensesEventQueries.GET_EVENTS]?: {
85
- [LicensesEventGetEventsQueryField.EVENTS]?: LicensesEventGetEventsResponseDataType[];
86
- };
83
+ [LicensesEventQueries.GET_EVENTS]?: {
84
+ [LicensesEventGetEventsQueryField.EVENTS]?: LicensesEventGetEventsResponseDataType[];
85
+ [LicensesEventGetEventsResponseField.PAGINATION]?: LicensesEventPageType;
87
86
  };
88
- [LicensesEventGetEventsResponseField.PAGINATION]?: LicensesEventPageType;
89
87
  };
90
88
  export declare type LicensesEventGetEventsResponseDataType = {
91
89
  [LicensesEventDataField.EVENT]?: LicenseEvent;
@@ -44,7 +44,7 @@ class SupportCenterClient extends abstractRestfulClient_1.AbstractRestfulClient
44
44
  }
45
45
  async updateIssue(issueId, payload, parameters = {}) {
46
46
  this.path = `/issues/${issueId}`;
47
- return await this.patch(payload, parameters);
47
+ return new getResult_1.GetResult(issue_1.Issue, await this.patch(payload, parameters));
48
48
  }
49
49
  async listIssueComments(issueId, parameters = {}) {
50
50
  this.path = `/issues/${issueId}/comments`;
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.70.1-rc.ckh.1",
7
+ "version": "3.70.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",