@juhuu/sdk-ts 1.2.106 → 1.2.107

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/dist/index.d.mts CHANGED
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
593
593
 
594
594
  declare class LinkService extends Service {
595
595
  constructor(config: JUHUU.SetupConfig);
596
+ search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
596
597
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
597
598
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
598
599
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
@@ -2505,6 +2506,17 @@ declare namespace JUHUU {
2505
2506
  property?: JUHUU.Property.Object;
2506
2507
  };
2507
2508
  }
2509
+ export namespace Search {
2510
+ type Params = {
2511
+ q: string;
2512
+ };
2513
+ type Options = {} & JUHUU.RequestOptions;
2514
+ type Response = {
2515
+ linkArray: JUHUU.Link.Object[];
2516
+ count: number;
2517
+ hasMore: boolean;
2518
+ };
2519
+ }
2508
2520
  export namespace List {
2509
2521
  type Params = {
2510
2522
  fiveLetterQr?: string;
package/dist/index.d.ts CHANGED
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
593
593
 
594
594
  declare class LinkService extends Service {
595
595
  constructor(config: JUHUU.SetupConfig);
596
+ search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
596
597
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
597
598
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
598
599
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
@@ -2505,6 +2506,17 @@ declare namespace JUHUU {
2505
2506
  property?: JUHUU.Property.Object;
2506
2507
  };
2507
2508
  }
2509
+ export namespace Search {
2510
+ type Params = {
2511
+ q: string;
2512
+ };
2513
+ type Options = {} & JUHUU.RequestOptions;
2514
+ type Response = {
2515
+ linkArray: JUHUU.Link.Object[];
2516
+ count: number;
2517
+ hasMore: boolean;
2518
+ };
2519
+ }
2508
2520
  export namespace List {
2509
2521
  type Params = {
2510
2522
  fiveLetterQr?: string;
package/dist/index.js CHANGED
@@ -458,6 +458,21 @@ var LinkService = class extends Service {
458
458
  constructor(config) {
459
459
  super(config);
460
460
  }
461
+ async search(LinkSearchParams, LinkSearchOptions) {
462
+ const queryArray = [];
463
+ if (LinkSearchParams.q !== void 0) {
464
+ queryArray.push("q=" + LinkSearchParams.q);
465
+ }
466
+ return await super.sendRequest(
467
+ {
468
+ method: "GET",
469
+ url: "links/search?" + queryArray.join("&"),
470
+ body: void 0,
471
+ authenticationNotOptional: false
472
+ },
473
+ LinkSearchOptions
474
+ );
475
+ }
461
476
  async create(LinkCreateParams, LinkCreateOptions) {
462
477
  return await super.sendRequest(
463
478
  {
package/dist/index.mjs CHANGED
@@ -414,6 +414,21 @@ var LinkService = class extends Service {
414
414
  constructor(config) {
415
415
  super(config);
416
416
  }
417
+ async search(LinkSearchParams, LinkSearchOptions) {
418
+ const queryArray = [];
419
+ if (LinkSearchParams.q !== void 0) {
420
+ queryArray.push("q=" + LinkSearchParams.q);
421
+ }
422
+ return await super.sendRequest(
423
+ {
424
+ method: "GET",
425
+ url: "links/search?" + queryArray.join("&"),
426
+ body: void 0,
427
+ authenticationNotOptional: false
428
+ },
429
+ LinkSearchOptions
430
+ );
431
+ }
417
432
  async create(LinkCreateParams, LinkCreateOptions) {
418
433
  return await super.sendRequest(
419
434
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.106",
3
+ "version": "1.2.107",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",