@caartzee/theme-sdk 1.2.1 → 1.2.3

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.
@@ -3,9 +3,19 @@ export declare function sdkEndpoint(value: string): string;
3
3
  export declare function parseSdkConnection(input: string): {
4
4
  api: string;
5
5
  token: string;
6
+ refreshToken?: string;
6
7
  };
7
8
  export declare function sdkRequest<T>(endpoint: string, token: string, query: string, variables?: {}): Promise<T>;
8
- export declare function connectSdk(endpoint: string, token: string): Promise<DeveloperCredentials>;
9
+ export declare function refreshSdkCredentials(credentials: DeveloperCredentials): Promise<DeveloperCredentials>;
10
+ export declare function sdkRequestWithAutoRefresh<T>(credentials: DeveloperCredentials, query: string, variables?: Record<string, unknown>): Promise<{
11
+ data: T;
12
+ credentials: DeveloperCredentials;
13
+ }>;
14
+ export declare function connectSdk(endpoint: string, token: string, refreshToken?: string): Promise<DeveloperCredentials>;
15
+ export declare function computeCanonicalPackageChecksum(files: {
16
+ path: string;
17
+ content: string;
18
+ }[]): string;
9
19
  export declare function collectThemeSources(root: string): {
10
20
  path: string;
11
21
  content: string;