@smapiot/piral-cloud-node 0.14.1 → 0.14.3-pre.20230303.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/lib/index.d.ts CHANGED
@@ -103,6 +103,7 @@ declare module "@smapiot/piral-cloud-node" {
103
103
  doQueryNpmPackage(feed: string, name: string, ac?: AbortController): Promise<NpmPackageDTO>;
104
104
  doUploadNpmPackage(feed: string, name: string, body: any, ac?: AbortController): Promise<void>;
105
105
  doDownloadFile(fileUrl: string, ac?: AbortController): Promise<Blob>;
106
+ doGetLicenseInfo(ac?: AbortController): Promise<LicenseInfo>;
106
107
  }
107
108
 
108
109
  /**
@@ -616,6 +617,17 @@ declare module "@smapiot/piral-cloud-node" {
616
617
  }>;
617
618
  }
618
619
 
620
+ export interface LicenseInfo {
621
+ /**
622
+ * The reference name identifying the licensee.
623
+ */
624
+ customer: string;
625
+ /**
626
+ * The expiration date of the license provided as an ISO-datetime string.
627
+ */
628
+ expires: string;
629
+ }
630
+
619
631
  /**
620
632
  * The simple API key options for creating a new service client.
621
633
  */
package/lib/index.js CHANGED
@@ -4535,9 +4535,7 @@ var FeedServiceApiClient = class {
4535
4535
  return this.doPost(`pilet/${feed}`, form, mri(ac));
4536
4536
  }
4537
4537
  doQueryCurrentPilets(feed, ac = mac()) {
4538
- return this.doGet(`pilet/${feed}`, mri(ac)).then(
4539
- (res) => res.items
4540
- );
4538
+ return this.doGet(`pilet/${feed}`, mri(ac)).then((res) => res.items);
4541
4539
  }
4542
4540
  doQueryPiletDetails(feed, pilet, ac = mac()) {
4543
4541
  return this.doGet(`feed/${feed}/pilets/${pilet}`, mri(ac));
@@ -4767,11 +4765,7 @@ var FeedServiceApiClient = class {
4767
4765
  return this.doGet(`feed/${feed}/analysis`, mri(ac));
4768
4766
  }
4769
4767
  doRecheckDomains(feed, domains, ac = mac()) {
4770
- return this.doPut(
4771
- `feed/${feed}/domains`,
4772
- { domains },
4773
- mri(ac)
4774
- );
4768
+ return this.doPut(`feed/${feed}/domains`, { domains }, mri(ac));
4775
4769
  }
4776
4770
  doQueryFeedStatistics(feed, from, to, ac = mac()) {
4777
4771
  const queryString = makeQueryString({ from, to });
@@ -4797,6 +4791,9 @@ var FeedServiceApiClient = class {
4797
4791
  doDownloadFile(fileUrl, ac = mac()) {
4798
4792
  return fetchWithToken(this.http, fileUrl, mri(ac)).then((res) => res.blob());
4799
4793
  }
4794
+ doGetLicenseInfo(ac = mac()) {
4795
+ return this.doGet("license", mri(ac));
4796
+ }
4800
4797
  };
4801
4798
 
4802
4799
  // node_modules/node-fetch/src/index.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/piral-cloud-node",
3
- "version": "0.14.1",
3
+ "version": "0.14.3-pre.20230303.1",
4
4
  "description": "Piral Cloud: Node-usable API Client for the Piral Feed Service.",
5
5
  "author": {
6
6
  "name": "smapiot",
@@ -40,7 +40,7 @@
40
40
  "node"
41
41
  ],
42
42
  "devDependencies": {
43
- "@piral/feed-client": "^0.14.1",
43
+ "@piral/feed-client": "^0.14.3",
44
44
  "dets": "^0.12.0",
45
45
  "esbuild": "^0.14.51",
46
46
  "node-fetch": "^3.2.10"