feeef 0.12.10 → 0.12.12

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.
@@ -197,7 +197,7 @@ export declare class FeeeF {
197
197
  * @param {AxiosInstance} config.client - The Axios instance used for making HTTP requests.
198
198
  * @param {boolean | number} config.cache - The caching configuration. Set to `false` to disable caching, or provide a number to set the cache TTL in milliseconds.
199
199
  */
200
- constructor({ apiKey, client, cache, baseURL }: FeeeFConfig);
200
+ constructor({ apiKey, client, baseURL }: FeeeFConfig);
201
201
  /**
202
202
  * Sets a header for all requests
203
203
  * @param {string} key - The header key.
@@ -30,7 +30,11 @@ export interface AppCreateInput {
30
30
  /** Optional app logo URL. */
31
31
  logoUrl?: string;
32
32
  redirectUris: string[];
33
- scopes: string[];
33
+ /**
34
+ * Registered scope catalog. Optional — omit or pass `[]` for an
35
+ * identity-only app (`auth`). Never treated as full access.
36
+ */
37
+ scopes?: string[];
34
38
  userId?: string;
35
39
  }
36
40
  /**
@@ -1,5 +1,6 @@
1
1
  export * from './feeef/feeef.js';
2
2
  export * from './core/models_catalog.js';
3
+ export * from './core/oauth_scopes.js';
3
4
  export * from './delivery/parcel.js';
4
5
  export * from './delivery/delivery_carrier_client.js';
5
6
  export * from './core/entities/order.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.12.10",
4
+ "version": "0.12.12",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [
@@ -18,7 +18,7 @@
18
18
  "clean": "del-cli build",
19
19
  "typecheck": "tsc --noEmit",
20
20
  "precompile": "npm run lint && npm run clean",
21
- "compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
21
+ "compile": "tsup-node && tsc --emitDeclarationOnly --declaration -p tsconfig.build.json",
22
22
  "build": "npm run compile",
23
23
  "release": "npx release-it",
24
24
  "publish:npm": "bash ./scripts/publish.sh",
@@ -1,7 +0,0 @@
1
- import '@japa/assert';
2
- declare module '@japa/assert' {
3
- interface Assert {
4
- validationErrors(promiseLike: Promise<any>, messages: any): Promise<void>;
5
- validationOutput(promiseLike: Promise<any>, output: any): Promise<void>;
6
- }
7
- }
@@ -1 +0,0 @@
1
- export {};