arky-sdk 0.4.11 → 0.4.12
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.cjs +1 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1926,21 +1926,10 @@ async function createArkySDK(config) {
|
|
|
1926
1926
|
};
|
|
1927
1927
|
const accountApi = createAccountApi(apiConfig);
|
|
1928
1928
|
const authApi = createAuthApi(apiConfig);
|
|
1929
|
-
const businessApi = createBusinessApi(apiConfig);
|
|
1930
|
-
if (typeof window !== "undefined") {
|
|
1931
|
-
try {
|
|
1932
|
-
const business = await businessApi.getBusiness({ id: config.businessId });
|
|
1933
|
-
const measurementId = business?.configs?.analytics?.measurementId;
|
|
1934
|
-
if (measurementId) {
|
|
1935
|
-
injectGA4Script(measurementId);
|
|
1936
|
-
}
|
|
1937
|
-
} catch (e) {
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
1929
|
const sdk = {
|
|
1941
1930
|
auth: authApi,
|
|
1942
1931
|
account: accountApi,
|
|
1943
|
-
business:
|
|
1932
|
+
business: createBusinessApi(apiConfig),
|
|
1944
1933
|
media: createMediaApi(apiConfig),
|
|
1945
1934
|
notification: createNotificationApi(apiConfig),
|
|
1946
1935
|
promoCode: createPromoCodeApi(apiConfig),
|