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