@nextplus/js-sdk 0.0.5 → 0.0.7

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.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { A as AllServices } from './index-Dz0aDLqE.cjs';
2
- import './sdk.gen-CPR3KdM-.cjs';
1
+ import { A as AllServiceTypes } from './index-C3v0bPFu.cjs';
2
+ import './sdk.gen-D5rTIkwe.cjs';
3
3
  import './types.gen-vDP9AbtO.cjs';
4
4
 
5
5
  type ServiceStatics = {
6
- [K in keyof typeof AllServices as K extends `${string}Service` ? K : never]: typeof AllServices[K];
6
+ [K in keyof typeof AllServiceTypes as K extends `${string}Service` ? K : never]: typeof AllServiceTypes[K];
7
7
  };
8
8
  declare class NextPlusSDK {
9
9
  private client;
@@ -26,19 +26,20 @@ declare class NextPlusSDK {
26
26
  }
27
27
  interface NextPlusSDK extends ServiceStatics {
28
28
  }
29
+ type SDKInstance = NextPlusSDK & ServiceStatics;
29
30
  declare const configure: (options: {
30
31
  baseURL: string;
31
32
  email?: string;
32
33
  username?: string;
33
34
  password: string;
34
35
  returnType?: "raw" | "data";
35
- }) => NextPlusSDK;
36
+ }) => SDKInstance;
36
37
  declare const createSDK: (options: {
37
38
  baseURL: string;
38
39
  email?: string;
39
40
  username?: string;
40
41
  password: string;
41
42
  returnType?: "raw" | "data";
42
- }) => NextPlusSDK;
43
+ }) => SDKInstance;
43
44
 
44
- export { NextPlusSDK, configure, createSDK };
45
+ export { NextPlusSDK, type SDKInstance, configure, createSDK };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { A as AllServices } from './index-B0kRliN0.js';
2
- import './sdk.gen-D3Q8YKqz.js';
1
+ import { A as AllServiceTypes } from './index-GlppKn7r.js';
2
+ import './sdk.gen-Cri-c6ps.js';
3
3
  import './types.gen-vDP9AbtO.js';
4
4
 
5
5
  type ServiceStatics = {
6
- [K in keyof typeof AllServices as K extends `${string}Service` ? K : never]: typeof AllServices[K];
6
+ [K in keyof typeof AllServiceTypes as K extends `${string}Service` ? K : never]: typeof AllServiceTypes[K];
7
7
  };
8
8
  declare class NextPlusSDK {
9
9
  private client;
@@ -26,19 +26,20 @@ declare class NextPlusSDK {
26
26
  }
27
27
  interface NextPlusSDK extends ServiceStatics {
28
28
  }
29
+ type SDKInstance = NextPlusSDK & ServiceStatics;
29
30
  declare const configure: (options: {
30
31
  baseURL: string;
31
32
  email?: string;
32
33
  username?: string;
33
34
  password: string;
34
35
  returnType?: "raw" | "data";
35
- }) => NextPlusSDK;
36
+ }) => SDKInstance;
36
37
  declare const createSDK: (options: {
37
38
  baseURL: string;
38
39
  email?: string;
39
40
  username?: string;
40
41
  password: string;
41
42
  returnType?: "raw" | "data";
42
- }) => NextPlusSDK;
43
+ }) => SDKInstance;
43
44
 
44
- export { NextPlusSDK, configure, createSDK };
45
+ export { NextPlusSDK, type SDKInstance, configure, createSDK };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sdk_exports
3
- } from "./chunk-YEF23TVP.js";
3
+ } from "./chunk-JGXGSMXJ.js";
4
4
  import {
5
5
  UserModelService
6
- } from "./chunk-DNVJS7WW.js";
6
+ } from "./chunk-GWZP3XPB.js";
7
7
  import {
8
8
  __publicField,
9
9
  createClient