curtain-web-api 1.0.89 → 1.0.91

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/.idea/.name CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/.idea/modules.xml CHANGED
File without changes
package/.idea/vcs.xml CHANGED
File without changes
package/README.md CHANGED
File without changes
@@ -190,7 +190,7 @@ export declare class CurtainWebAPI {
190
190
  getOwners(linkId: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
191
191
  addOwner(linkId: string, owner: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
192
192
  removeOwner(linkId: string, owner: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
193
- getCurtainLinks(username: string, sessionName?: string, offset?: number, sessionType?: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
193
+ getCurtainLinks(username: string, sessionName?: string, offset?: number, sessionType?: string, limit?: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
194
194
  getSiteProperties(appType?: string): Promise<import("axios").AxiosResponse<SiteProperties, any, {}>>;
195
195
  saveDataFilterList(name: string, data: string, category?: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
196
196
  getDataFilterListByID(id: number, limit?: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
@@ -414,13 +414,14 @@ export class CurtainWebAPI {
414
414
  return response;
415
415
  });
416
416
  }
417
- getCurtainLinks(username, sessionName = "", offset = 0, sessionType = "TP") {
417
+ getCurtainLinks(username, sessionName = "", offset = 0, sessionType = "TP", limit = 10) {
418
418
  let headers = new AxiosHeaders();
419
419
  headers["Accept"] = "application/json";
420
420
  let params = new URLSearchParams();
421
421
  params.append("username", username);
422
422
  params.append("name", sessionName);
423
423
  params.append("offset", offset.toString());
424
+ params.append("limit", limit.toString());
424
425
  params.append("curtain_type", sessionType);
425
426
  params.append("ordering", "-created");
426
427
  return this.axiosInstance.get(this.baseURL + "curtain/", { headers: headers, params: params, responseType: "json" }).then((response) => {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/build/index.d.ts CHANGED
File without changes
package/build/index.js CHANGED
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -625,13 +625,14 @@ export class CurtainWebAPI {
625
625
  })
626
626
  }
627
627
 
628
- getCurtainLinks(username: string, sessionName: string = "", offset: number = 0, sessionType: string = "TP") {
628
+ getCurtainLinks(username: string, sessionName: string = "", offset: number = 0, sessionType: string = "TP", limit: number = 10) {
629
629
  let headers = new AxiosHeaders();
630
630
  headers["Accept"] = "application/json";
631
631
  let params: URLSearchParams = new URLSearchParams();
632
632
  params.append("username", username);
633
633
  params.append("name", sessionName);
634
634
  params.append("offset", offset.toString());
635
+ params.append("limit", limit.toString());
635
636
  params.append("curtain_type", sessionType);
636
637
  params.append("ordering", "-created");
637
638
  return this.axiosInstance.get(this.baseURL + "curtain/", {headers: headers, params: params, responseType:"json"}).then((response) => {
File without changes
File without changes
package/src/index.ts CHANGED
File without changes
File without changes
File without changes
package/src/utilities.ts CHANGED
File without changes
package/tsconfig.json CHANGED
File without changes