btrz-api-client 8.35.0 → 8.36.0

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.
@@ -27,7 +27,6 @@ function customContentFactory(_ref) {
27
27
  * GET /custom-content — List custom content (paginated). Query: enabled, pageId.
28
28
  * @param {Object} opts
29
29
  * @param {string} [opts.token] - API key
30
- * @param {string} [opts.jwtToken] - JWT or internal auth
31
30
  * @param {InventoryCustomContentQuery} [opts.query] - Query params (enabled, pageId)
32
31
  * @param {Object} [opts.headers] - Optional headers
33
32
  * @returns {Promise<import("axios").AxiosResponse<{ customContent: Object[] }>>}
@@ -6,10 +6,11 @@ var _require = require("./../endpoints_helpers.js"),
6
6
  /**
7
7
  * Query params for GET /fees (btrz-api-inventory). See fees get-handler getSpec().
8
8
  * @typedef {Object} InventoryFeesQuery
9
- * @property {string} [providerIds] - Provider IDs to get fees for
10
- * @property {string} [rules] - Rules where the fees apply
11
- * @property {string} [productId] - Product ID for the fee
12
- * @property {string} [internalId] - Fee internal id
9
+ * @property {string} [providerIds] - Comma-separated provider (account) IDs to get fees for
10
+ * @property {string} [rules] - Comma-separated rules where the fees apply (e.g. cancel, ticket, transaction)
11
+ * @property {string} [productId] - Product ID to filter fees by
12
+ * @property {string} [internalId] - Fee internal id to filter by
13
+ * @property {string} [page] - Page number for pagination (1-based). Response includes next, previous, count
13
14
  */
14
15
 
15
16
  /**
@@ -32,7 +33,7 @@ function feesFactory(_ref) {
32
33
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
33
34
  * @param {InventoryFeesQuery} [opts.query] - Query params (providerIds, rules, productId, internalId)
34
35
  * @param {Object} [opts.headers] - Optional headers
35
- * @returns {Promise<import("axios").AxiosResponse<{ fees: Array, next?: string, previous?: string, count: number }>>}
36
+ * @returns {Promise<import("axios").AxiosResponse<{ fees: Array, next: string, previous: string, count: number }>>}
36
37
  * @throws When response is 4xx/5xx (401, 500)
37
38
  */
38
39
  function all(_ref2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btrz-api-client",
3
- "version": "8.35.0",
3
+ "version": "8.36.0",
4
4
  "description": "Api client for Betterez endpoints",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,6 @@ function customContentFactory({client, internalAuthTokenProvider}) {
21
21
  * GET /custom-content — List custom content (paginated). Query: enabled, pageId.
22
22
  * @param {Object} opts
23
23
  * @param {string} [opts.token] - API key
24
- * @param {string} [opts.jwtToken] - JWT or internal auth
25
24
  * @param {InventoryCustomContentQuery} [opts.query] - Query params (enabled, pageId)
26
25
  * @param {Object} [opts.headers] - Optional headers
27
26
  * @returns {Promise<import("axios").AxiosResponse<{ customContent: Object[] }>>}
@@ -3,10 +3,11 @@ const {authorizationHeaders} = require("./../endpoints_helpers.js");
3
3
  /**
4
4
  * Query params for GET /fees (btrz-api-inventory). See fees get-handler getSpec().
5
5
  * @typedef {Object} InventoryFeesQuery
6
- * @property {string} [providerIds] - Provider IDs to get fees for
7
- * @property {string} [rules] - Rules where the fees apply
8
- * @property {string} [productId] - Product ID for the fee
9
- * @property {string} [internalId] - Fee internal id
6
+ * @property {string} [providerIds] - Comma-separated provider (account) IDs to get fees for
7
+ * @property {string} [rules] - Comma-separated rules where the fees apply (e.g. cancel, ticket, transaction)
8
+ * @property {string} [productId] - Product ID to filter fees by
9
+ * @property {string} [internalId] - Fee internal id to filter by
10
+ * @property {string} [page] - Page number for pagination (1-based). Response includes next, previous, count
10
11
  */
11
12
 
12
13
  /**
@@ -24,7 +25,7 @@ function feesFactory({client, internalAuthTokenProvider}) {
24
25
  * @param {string} [opts.jwtToken] - JWT or internal auth symbol
25
26
  * @param {InventoryFeesQuery} [opts.query] - Query params (providerIds, rules, productId, internalId)
26
27
  * @param {Object} [opts.headers] - Optional headers
27
- * @returns {Promise<import("axios").AxiosResponse<{ fees: Array, next?: string, previous?: string, count: number }>>}
28
+ * @returns {Promise<import("axios").AxiosResponse<{ fees: Array, next: string, previous: string, count: number }>>}
28
29
  * @throws When response is 4xx/5xx (401, 500)
29
30
  */
30
31
  function all({token, jwtToken, query = {}, headers}) {