@tapline/client 0.2.5 → 0.2.6

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.
Files changed (42) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/client.d.ts +2 -0
  3. package/dist/cjs/client.d.ts.map +1 -1
  4. package/dist/cjs/client.js +3 -0
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/index.d.ts +2 -0
  7. package/dist/cjs/index.d.ts.map +1 -1
  8. package/dist/cjs/index.js +4 -1
  9. package/dist/cjs/index.js.map +1 -1
  10. package/dist/cjs/services/pinterest/client.d.ts +15 -0
  11. package/dist/cjs/services/pinterest/client.d.ts.map +1 -0
  12. package/dist/cjs/services/pinterest/client.js +28 -0
  13. package/dist/cjs/services/pinterest/client.js.map +1 -0
  14. package/dist/cjs/services/pinterest/index.d.ts +3 -0
  15. package/dist/cjs/services/pinterest/index.d.ts.map +1 -0
  16. package/dist/cjs/services/pinterest/index.js +22 -0
  17. package/dist/cjs/services/pinterest/index.js.map +1 -0
  18. package/dist/cjs/services/pinterest/types.d.ts +1522 -0
  19. package/dist/cjs/services/pinterest/types.d.ts.map +1 -0
  20. package/dist/cjs/services/pinterest/types.js +4 -0
  21. package/dist/cjs/services/pinterest/types.js.map +1 -0
  22. package/dist/client.d.ts +2 -0
  23. package/dist/client.d.ts.map +1 -1
  24. package/dist/client.js +3 -0
  25. package/dist/client.js.map +1 -1
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +2 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/services/pinterest/client.d.ts +15 -0
  31. package/dist/services/pinterest/client.d.ts.map +1 -0
  32. package/dist/services/pinterest/client.js +24 -0
  33. package/dist/services/pinterest/client.js.map +1 -0
  34. package/dist/services/pinterest/index.d.ts +3 -0
  35. package/dist/services/pinterest/index.d.ts.map +1 -0
  36. package/dist/services/pinterest/index.js +4 -0
  37. package/dist/services/pinterest/index.js.map +1 -0
  38. package/dist/services/pinterest/types.d.ts +1522 -0
  39. package/dist/services/pinterest/types.d.ts.map +1 -0
  40. package/dist/services/pinterest/types.js +3 -0
  41. package/dist/services/pinterest/types.js.map +1 -0
  42. package/package.json +3 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tapline/client
2
2
 
3
- Use `@tapline/client` to collect live data from YouTube, Airbnb, GMGN, GeckoTerminal, GoPlus Security, Pons Family, and Twitter (X) in TypeScript or JavaScript.
3
+ Use `@tapline/client` to collect live data from YouTube, Airbnb, GMGN, GeckoTerminal, GoPlus Security, Pons Family, Twitter (X), and Pinterest in TypeScript or JavaScript.
4
4
 
5
5
  ## What you can do
6
6
 
@@ -13,8 +13,9 @@ Use `@tapline/client` to collect live data from YouTube, Airbnb, GMGN, GeckoTerm
13
13
  | GoPlus Security | Check EVM and Tron tokens and Solana mints for honeypots, taxes, owner and mint powers, holders, and liquidity | [GoPlus guide](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/goplus/README.md) |
14
14
  | Pons Family | Browse and search launches, read token markets, trades and holders, follow wallets and creator fees, and read the memestock forum | [Pons Family guide](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/ponsfamily/README.md) |
15
15
  | Twitter (X) | Read public X profiles with their pinned and newest posts, single posts with media, quotes and top replies, and X Communities | [Twitter guide](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/twitter/README.md) |
16
+ | Pinterest | Search pins, read one pin with every image size, its video and idea-pin pages, list a user's boards, and read the pins on a board | [Pinterest guide](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/pinterest/README.md) |
16
17
 
17
- One API key and credit balance work across all seven services.
18
+ One API key and credit balance work across all eight services.
18
19
 
19
20
  ## Get started
20
21
 
@@ -174,6 +175,7 @@ Use the [Tapline API reference](https://tapline.sh/docs?utm_source=typescript_cl
174
175
  - [GoPlus Security](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/goplus/README.md)
175
176
  - [Pons Family](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/ponsfamily/README.md)
176
177
  - [Twitter (X)](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/twitter/README.md)
178
+ - [Pinterest](https://github.com/TaplineData/tapline-typescript/blob/main/src/services/pinterest/README.md)
177
179
 
178
180
  ## License
179
181
 
@@ -6,6 +6,7 @@ import { GeckoterminalClient } from './services/geckoterminal/client.js';
6
6
  import { PonsfamilyClient } from './services/ponsfamily/client.js';
7
7
  import { GoplusClient } from './services/goplus/client.js';
8
8
  import { TwitterClient } from './services/twitter/client.js';
9
+ import { PinterestClient } from './services/pinterest/client.js';
9
10
  export declare class TaplineClient {
10
11
  readonly airbnb: AirbnbClient;
11
12
  readonly youtube: YoutubeClient;
@@ -14,6 +15,7 @@ export declare class TaplineClient {
14
15
  readonly ponsfamily: PonsfamilyClient;
15
16
  readonly goplus: GoplusClient;
16
17
  readonly twitter: TwitterClient;
18
+ readonly pinterest: PinterestClient;
17
19
  constructor(config?: TaplineClientConfig);
18
20
  }
19
21
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,qBAAa,aAAa;IACxB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,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,mBAAwB;CAW7C"}
@@ -10,6 +10,7 @@ const client_js_4 = require("./services/geckoterminal/client.js");
10
10
  const client_js_5 = require("./services/ponsfamily/client.js");
11
11
  const client_js_6 = require("./services/goplus/client.js");
12
12
  const client_js_7 = require("./services/twitter/client.js");
13
+ const client_js_8 = require("./services/pinterest/client.js");
13
14
  class TaplineClient {
14
15
  airbnb;
15
16
  youtube;
@@ -18,6 +19,7 @@ class TaplineClient {
18
19
  ponsfamily;
19
20
  goplus;
20
21
  twitter;
22
+ pinterest;
21
23
  constructor(config = {}) {
22
24
  const base = new base_js_1.BaseClient(config);
23
25
  this.airbnb = new client_js_1.AirbnbClient(base);
@@ -27,6 +29,7 @@ class TaplineClient {
27
29
  this.ponsfamily = new client_js_5.PonsfamilyClient(base);
28
30
  this.goplus = new client_js_6.GoplusClient(base);
29
31
  this.twitter = new client_js_7.TwitterClient(base);
32
+ this.pinterest = new client_js_8.PinterestClient(base);
30
33
  }
31
34
  }
32
35
  exports.TaplineClient = TaplineClient;
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;AAEpE,uCAAuC;AAEvC,2DAA2D;AAC3D,4DAA6D;AAC7D,yDAAuD;AACvD,kEAAyE;AACzE,+DAAmE;AACnE,2DAA2D;AAC3D,4DAA6D;AAE7D,MAAa,aAAa;IACf,MAAM,CAAe;IACrB,OAAO,CAAgB;IACvB,IAAI,CAAa;IACjB,aAAa,CAAsB;IACnC,UAAU,CAAmB;IAC7B,MAAM,CAAe;IACrB,OAAO,CAAgB;IAEhC,YAAY,SAA8B,EAAE;QAC1C,MAAM,IAAI,GAAG,IAAI,oBAAU,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAY,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC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AC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CACF;AArBD,sCAqBC"}
@@ -9,6 +9,7 @@ export { GeckoterminalClient } from './services/geckoterminal/client.js';
9
9
  export { PonsfamilyClient } from './services/ponsfamily/client.js';
10
10
  export { GoplusClient } from './services/goplus/client.js';
11
11
  export { TwitterClient } from './services/twitter/client.js';
12
+ export { PinterestClient } from './services/pinterest/client.js';
12
13
  export * as airbnb from './services/airbnb/index.js';
13
14
  export * as youtube from './services/youtube/index.js';
14
15
  export * as gmgn from './services/gmgn/index.js';
@@ -16,4 +17,5 @@ export * as geckoterminal from './services/geckoterminal/index.js';
16
17
  export * as ponsfamily from './services/ponsfamily/index.js';
17
18
  export * as goplus from './services/goplus/index.js';
18
19
  export * as twitter from './services/twitter/index.js';
20
+ export * as pinterest from './services/pinterest/index.js';
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE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,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,UAAU,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.twitter = exports.goplus = exports.ponsfamily = exports.geckoterminal = exports.gmgn = exports.youtube = exports.airbnb = exports.TwitterClient = exports.GoplusClient = exports.PonsfamilyClient = exports.GeckoterminalClient = exports.GmgnClient = exports.YoutubeClient = exports.AirbnbClient = exports.TaplineError = exports.MissingApiKeyError = exports.DEFAULT_BASE_URL = exports.BaseClient = exports.TaplineClient = void 0;
37
+ exports.pinterest = exports.twitter = exports.goplus = exports.ponsfamily = exports.geckoterminal = exports.gmgn = exports.youtube = exports.airbnb = exports.PinterestClient = exports.TwitterClient = exports.GoplusClient = exports.PonsfamilyClient = exports.GeckoterminalClient = exports.GmgnClient = exports.YoutubeClient = exports.AirbnbClient = exports.TaplineError = exports.MissingApiKeyError = exports.DEFAULT_BASE_URL = exports.BaseClient = exports.TaplineClient = void 0;
38
38
  var client_js_1 = require("./client.js");
39
39
  Object.defineProperty(exports, "TaplineClient", { enumerable: true, get: function () { return client_js_1.TaplineClient; } });
40
40
  var base_js_1 = require("./base.js");
@@ -57,6 +57,8 @@ var client_js_7 = require("./services/goplus/client.js");
57
57
  Object.defineProperty(exports, "GoplusClient", { enumerable: true, get: function () { return client_js_7.GoplusClient; } });
58
58
  var client_js_8 = require("./services/twitter/client.js");
59
59
  Object.defineProperty(exports, "TwitterClient", { enumerable: true, get: function () { return client_js_8.TwitterClient; } });
60
+ var client_js_9 = require("./services/pinterest/client.js");
61
+ Object.defineProperty(exports, "PinterestClient", { enumerable: true, get: function () { return client_js_9.PinterestClient; } });
60
62
  exports.airbnb = __importStar(require("./services/airbnb/index.js"));
61
63
  exports.youtube = __importStar(require("./services/youtube/index.js"));
62
64
  exports.gmgn = __importStar(require("./services/gmgn/index.js"));
@@ -64,4 +66,5 @@ exports.geckoterminal = __importStar(require("./services/geckoterminal/index.js"
64
66
  exports.ponsfamily = __importStar(require("./services/ponsfamily/index.js"));
65
67
  exports.goplus = __importStar(require("./services/goplus/index.js"));
66
68
  exports.twitter = __importStar(require("./services/twitter/index.js"));
69
+ exports.pinterest = __importStar(require("./services/pinterest/index.js"));
67
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpE,yCAA4C;AAAnC,0GAAA,aAAa,OAAA;AACtB,qCAAyD;AAAhD,qGAAA,UAAU,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AACrC,yCAA+D;AAAtD,+GAAA,kBAAkB,OAAA;AAAE,yGAAA,YAAY,OAAA;AAEzC,yDAA2D;AAAlD,yGAAA,YAAY,OAAA;AACrB,0DAA6D;AAApD,0GAAA,aAAa,OAAA;AACtB,uDAAuD;AAA9C,uGAAA,UAAU,OAAA;AACnB,gEAAyE;AAAhE,gHAAA,mBAAmB,OAAA;AAC5B,6DAAmE;AAA1D,6GAAA,gBAAgB,OAAA;AACzB,yDAA2D;AAAlD,yGAAA,YAAY,OAAA;AACrB,0DAA6D;AAApD,0GAAA,aAAa,OAAA;AACtB,qEAAqD;AACrD,uEAAuD;AACvD,iEAAiD;AACjD,mFAAmE;AACnE,6EAA6D;AAC7D,qEAAqD;AACrD,uEAAuD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpE,yCAA4C;AAAnC,0GAAA,aAAa,OAAA;AACtB,qCAAyD;AAAhD,qGAAA,UAAU,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AACrC,yCAA+D;AAAtD,+GAAA,kBAAkB,OAAA;AAAE,yGAAA,YAAY,OAAA;AAEzC,yDAA2D;AAAlD,yGAAA,YAAY,OAAA;AACrB,0DAA6D;AAApD,0GAAA,aAAa,OAAA;AACtB,uDAAuD;AAA9C,uGAAA,UAAU,OAAA;AACnB,gEAAyE;AAAhE,gHAAA,mBAAmB,OAAA;AAC5B,6DAAmE;AAA1D,6GAAA,gBAAgB,OAAA;AACzB,yDAA2D;AAAlD,yGAAA,YAAY,OAAA;AACrB,0DAA6D;AAApD,0GAAA,aAAa,OAAA;AACtB,4DAAiE;AAAxD,4GAAA,eAAe,OAAA;AACxB,qEAAqD;AACrD,uEAAuD;AACvD,iEAAiD;AACjD,mFAAmE;AACnE,6EAA6D;AAC7D,qEAAqD;AACrD,uEAAuD;AACvD,2EAA2D"}
@@ -0,0 +1,15 @@
1
+ import type { BaseClient } from '../../base.js';
2
+ import type { GetBoardParams, GetPinParams, GetUserBoardsParams, PinterestBoardResponse, PinterestPinResponse, PinterestSearchResponse, PinterestUserBoardsResponse, SearchPinsParams } from './types.js';
3
+ export declare class PinterestClient {
4
+ private readonly base;
5
+ constructor(base: BaseClient);
6
+ /** The pins on a public Pinterest board, in board order: Pinterest's own pin objects with images, link, title, pinner, board and aggregated pin data. `id` is the numeric pin id, `link` is `null` on a pin uploaded without one, and Pinterest sends no `pin_join` for board pins. About 25 pins per page; pass `cursor` back for the next page, which is `null` on the last one. Costs 1 credit. */
7
+ getBoard(params: GetBoardParams): Promise<PinterestBoardResponse>;
8
+ /** One Pinterest pin: title, description, link, dominant color, pinner and origin pinner, board, images at every size (`images_<size>` and `imageSpec_<size>`), counts, video variants and annotations. The fields are Pinterest's own, in camelCase, merged from the two queries the pin page runs, as Scrape Creators returns them. `entityId` is the numeric pin id and `id` is Pinterest's node id. Pinterest's `isVideo` is `false` on some video pins; `videos` is set on every one. Accepts pin URLs on any Pinterest domain and pin.it share links. Costs 1 credit. */
9
+ getPin(params: GetPinParams): Promise<PinterestPinResponse>;
10
+ /** Searches Pinterest pins. Each pin is Pinterest's own search result object plus a `url`, the same body Scrape Creators returns. `id` is the numeric pin id; a pin uploaded without a link has no `link` key. Pinterest sends up to 25 pins per page and the count varies, so keep paging while `cursor` is not `null`; a pin can repeat across pages. Pinterest matches loosely, so most queries return related pins, but a query with no matches answers an empty page, which is charged. Costs 1 credit. */
11
+ searchPins(params: SearchPinsParams): Promise<PinterestSearchResponse>;
12
+ /** A Pinterest user's public boards, most recently pinned to first: name, URL, description, pin and follower counts, owner and cover images. About 25 boards per page; pass `cursor` back for the next page, which is `null` on the last one. Costs 1 credit. */
13
+ getUserBoards(params: GetUserBoardsParams): Promise<PinterestUserBoardsResponse>;
14
+ }
15
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/services/pinterest/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE1M,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,sYAAsY;IAChY,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,+iBAA+iB;IACziB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIjE,gfAAgf;IAC1e,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAI5E,iQAAiQ;IAC3P,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAGvF"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Generated by generate-client from spec/openapi.json. Do not edit.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PinterestClient = void 0;
5
+ class PinterestClient {
6
+ base;
7
+ constructor(base) {
8
+ this.base = base;
9
+ }
10
+ /** The pins on a public Pinterest board, in board order: Pinterest's own pin objects with images, link, title, pinner, board and aggregated pin data. `id` is the numeric pin id, `link` is `null` on a pin uploaded without one, and Pinterest sends no `pin_join` for board pins. About 25 pins per page; pass `cursor` back for the next page, which is `null` on the last one. Costs 1 credit. */
11
+ async getBoard(params) {
12
+ return this.base.get('/v1/pinterest/board', { ...params });
13
+ }
14
+ /** One Pinterest pin: title, description, link, dominant color, pinner and origin pinner, board, images at every size (`images_<size>` and `imageSpec_<size>`), counts, video variants and annotations. The fields are Pinterest's own, in camelCase, merged from the two queries the pin page runs, as Scrape Creators returns them. `entityId` is the numeric pin id and `id` is Pinterest's node id. Pinterest's `isVideo` is `false` on some video pins; `videos` is set on every one. Accepts pin URLs on any Pinterest domain and pin.it share links. Costs 1 credit. */
15
+ async getPin(params) {
16
+ return this.base.get('/v1/pinterest/pin', { ...params });
17
+ }
18
+ /** Searches Pinterest pins. Each pin is Pinterest's own search result object plus a `url`, the same body Scrape Creators returns. `id` is the numeric pin id; a pin uploaded without a link has no `link` key. Pinterest sends up to 25 pins per page and the count varies, so keep paging while `cursor` is not `null`; a pin can repeat across pages. Pinterest matches loosely, so most queries return related pins, but a query with no matches answers an empty page, which is charged. Costs 1 credit. */
19
+ async searchPins(params) {
20
+ return this.base.get('/v1/pinterest/search', { ...params });
21
+ }
22
+ /** A Pinterest user's public boards, most recently pinned to first: name, URL, description, pin and follower counts, owner and cover images. About 25 boards per page; pass `cursor` back for the next page, which is `null` on the last one. Costs 1 credit. */
23
+ async getUserBoards(params) {
24
+ return this.base.get('/v1/pinterest/user/boards', { ...params });
25
+ }
26
+ }
27
+ exports.PinterestClient = PinterestClient;
28
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/services/pinterest/client.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;AAKpE,MAAa,eAAe;IACG;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,sYAAsY;IACtY,KAAK,CAAC,QAAQ,CAAC,MAAsB;QACnC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAyB,qBAAqB,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,+iBAA+iB;IAC/iB,KAAK,CAAC,MAAM,CAAC,MAAoB;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAuB,mBAAmB,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,gfAAgf;IAChf,KAAK,CAAC,UAAU,CAAC,MAAwB;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA0B,sBAAsB,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,iQAAiQ;IACjQ,KAAK,CAAC,aAAa,CAAC,MAA2B;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA8B,2BAA2B,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAtBD,0CAsBC"}
@@ -0,0 +1,3 @@
1
+ export * from './types.js';
2
+ export { PinterestClient } from './client.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/pinterest/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // Generated by generate-client from spec/openapi.json. Do not edit.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PinterestClient = void 0;
19
+ __exportStar(require("./types.js"), exports);
20
+ var client_js_1 = require("./client.js");
21
+ Object.defineProperty(exports, "PinterestClient", { enumerable: true, get: function () { return client_js_1.PinterestClient; } });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/pinterest/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;;;;;;;;;;;;;;;AAEpE,6CAA2B;AAC3B,yCAA8C;AAArC,4GAAA,eAAe,OAAA"}