@snugdesk/whatsapp-widget 0.2.0 → 0.2.2
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.
Potentially problematic release.
This version of @snugdesk/whatsapp-widget might be problematic. Click here for more details.
package/index.d.ts
CHANGED
|
@@ -159,21 +159,25 @@ interface AppSyncGraphqlConfig {
|
|
|
159
159
|
}
|
|
160
160
|
declare const APPSYNC_GRAPHQL_CONFIG: InjectionToken<AppSyncGraphqlConfig>;
|
|
161
161
|
declare function provideAppSyncConfig(config: AppSyncGraphqlConfig): ValueProvider;
|
|
162
|
+
declare const AMPLIFY_CONFIG: InjectionToken<Record<string, unknown>>;
|
|
163
|
+
declare function provideAmplifyConfig(config: Record<string, unknown>): ValueProvider;
|
|
162
164
|
declare class AppSyncGraphqlService {
|
|
163
165
|
private readonly authenticationService;
|
|
164
166
|
private configured;
|
|
165
167
|
private authMode;
|
|
166
168
|
private readonly config;
|
|
167
|
-
|
|
169
|
+
private readonly amplifyConfig?;
|
|
170
|
+
constructor(config: AppSyncGraphqlConfig | null, amplifyConfig: Record<string, unknown> | null, authenticationService: SnugdeskAuthenticationService);
|
|
168
171
|
query<T>(statement: string, variables?: Record<string, unknown>): Promise<GraphQLResult<T>>;
|
|
169
172
|
mutate<T>(statement: string, variables?: Record<string, unknown>): Promise<GraphQLResult<T>>;
|
|
170
173
|
subscribe<T>(statement: string, variables?: Record<string, unknown>): Observable<GraphQLResult<T>>;
|
|
171
174
|
private ensureConfigured;
|
|
172
175
|
private getHostConfig;
|
|
173
176
|
private normalizeAuthMode;
|
|
177
|
+
private getAuthModeFromConfig;
|
|
174
178
|
private buildAuthHeaders;
|
|
175
179
|
private getToken;
|
|
176
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppSyncGraphqlService, [{ optional: true; }, null]>;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSyncGraphqlService, [{ optional: true; }, { optional: true; }, null]>;
|
|
177
181
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppSyncGraphqlService>;
|
|
178
182
|
}
|
|
179
183
|
|
|
@@ -1686,5 +1690,5 @@ declare class WhatsAppWidgetModule {
|
|
|
1686
1690
|
static ɵinj: i0.ɵɵInjectorDeclaration<WhatsAppWidgetModule>;
|
|
1687
1691
|
}
|
|
1688
1692
|
|
|
1689
|
-
export { APPSYNC_GRAPHQL_CONFIG, AppSyncGraphqlService, CustomError, LocationInputComponent, PhoneInputComponent, WhatsAppContactCreateComponent, WhatsAppContactListComponent, WhatsAppConversationsComponent, WhatsAppMessageItemComponent, WhatsAppMessagesComponent, WhatsAppTemplatePreviewComponent, WhatsAppTemplatesComponent, WhatsAppTextFormatterPipe, WhatsAppWidgetComponent, WhatsAppWidgetModule, provideAppSyncConfig };
|
|
1693
|
+
export { AMPLIFY_CONFIG, APPSYNC_GRAPHQL_CONFIG, AppSyncGraphqlService, CustomError, LocationInputComponent, PhoneInputComponent, WhatsAppContactCreateComponent, WhatsAppContactListComponent, WhatsAppConversationsComponent, WhatsAppMessageItemComponent, WhatsAppMessagesComponent, WhatsAppTemplatePreviewComponent, WhatsAppTemplatesComponent, WhatsAppTextFormatterPipe, WhatsAppWidgetComponent, WhatsAppWidgetModule, provideAmplifyConfig, provideAppSyncConfig };
|
|
1690
1694
|
export type { AppSyncGraphqlConfig, PhoneNumber };
|