@snugdesk/whatsapp-widget 0.2.1 → 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/README.md +12 -0
- package/fesm2022/snugdesk-whatsapp-widget.mjs +54 -55
- package/fesm2022/snugdesk-whatsapp-widget.mjs.map +1 -1
- package/index.d.ts +13 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -153,24 +153,28 @@ 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
|
|
163
|
+
declare const AMPLIFY_CONFIG: InjectionToken<AmplifyConfig>;
|
|
164
|
+
declare function provideAmplifyConfig(config: AmplifyConfig): ValueProvider;
|
|
162
165
|
declare class AppSyncGraphqlService {
|
|
163
166
|
private readonly authenticationService;
|
|
164
167
|
private configured;
|
|
165
168
|
private authMode;
|
|
166
|
-
private readonly
|
|
167
|
-
constructor(
|
|
169
|
+
private readonly amplifyConfig?;
|
|
170
|
+
constructor(amplifyConfig: AmplifyConfig | 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
180
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppSyncGraphqlService, [{ optional: true; }, null]>;
|
|
@@ -1686,5 +1690,5 @@ declare class WhatsAppWidgetModule {
|
|
|
1686
1690
|
static ɵinj: i0.ɵɵInjectorDeclaration<WhatsAppWidgetModule>;
|
|
1687
1691
|
}
|
|
1688
1692
|
|
|
1689
|
-
export {
|
|
1690
|
-
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 };
|