@vigneshreddy/cms-sdk 1.0.4 → 1.0.5
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/src/client.js +3 -1
- package/dist/src/generated/api.js +6 -2
- package/package.json +1 -1
package/dist/src/client.js
CHANGED
|
@@ -10,7 +10,9 @@ class CMS {
|
|
|
10
10
|
if (!config.apiKey) {
|
|
11
11
|
throw new Error("CMS SDK: apiKey is required.");
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
// Absolute base URL for the CMS SDK – we intentionally do NOT append
|
|
14
|
+
// per-endpoint paths like /track/lead; callers just hit this base.
|
|
15
|
+
const basePath = "https://www.app.dev.cutmeshort.com/sdk";
|
|
14
16
|
// Retry configuration with sensible defaults
|
|
15
17
|
this.maxRetries = (_a = config.maxRetries) !== null && _a !== void 0 ? _a : 2;
|
|
16
18
|
this.retryDelayMs = (_b = config.retryDelayMs) !== null && _b !== void 0 ? _b : 500;
|
|
@@ -34,7 +34,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
34
34
|
trackLead: async (trackLeadRequest, options = {}) => {
|
|
35
35
|
// verify required parameter 'trackLeadRequest' is not null or undefined
|
|
36
36
|
(0, common_1.assertParamExists)('trackLead', 'trackLeadRequest', trackLeadRequest);
|
|
37
|
-
|
|
37
|
+
// We already include the full `/sdk` URL in the SDK's basePath,
|
|
38
|
+
// so we do not append any additional path segments here.
|
|
39
|
+
const localVarPath = ``;
|
|
38
40
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39
41
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40
42
|
let baseOptions;
|
|
@@ -68,7 +70,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
68
70
|
trackSale: async (trackSaleRequest, options = {}) => {
|
|
69
71
|
// verify required parameter 'trackSaleRequest' is not null or undefined
|
|
70
72
|
(0, common_1.assertParamExists)('trackSale', 'trackSaleRequest', trackSaleRequest);
|
|
71
|
-
|
|
73
|
+
// We already include the full `/sdk` URL in the SDK's basePath,
|
|
74
|
+
// so we do not append any additional path segments here.
|
|
75
|
+
const localVarPath = ``;
|
|
72
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
77
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
74
78
|
let baseOptions;
|