@hubs101/js-api-skd-client 1.0.10578 → 1.0.10579
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/lib/api/public/index.js +1 -1
- package/lib/types/base.d.ts +1 -0
- package/lib/utils/base.js +2 -1
- package/package.json +1 -1
package/lib/api/public/index.js
CHANGED
|
@@ -91,7 +91,7 @@ exports._fetchPublicOffer = _fetchPublicOffer;
|
|
|
91
91
|
const _uploadPublicOfferPdf = (basePath, offerId, userId, access, file) => __awaiter(void 0, void 0, void 0, function* () {
|
|
92
92
|
var _a;
|
|
93
93
|
const base = (0, base_1.getBasePath)(basePath);
|
|
94
|
-
const url = `${base.
|
|
94
|
+
const url = `${base.PUBLIC_OFFERS_UPLOAD}/${offerId}/upload-offer?user=${userId}&access=${access}`;
|
|
95
95
|
const formData = new FormData();
|
|
96
96
|
formData.append("file", file);
|
|
97
97
|
const response = yield fetch(url, {
|
package/lib/types/base.d.ts
CHANGED
package/lib/utils/base.js
CHANGED
|
@@ -68,7 +68,8 @@ const getBasePath = (basePath) => {
|
|
|
68
68
|
PUBLIC_GROUPS: `${publicBasePath}/groups`,
|
|
69
69
|
PUBLIC_ACCOUNTS: `${publicBasePath}/accounts`,
|
|
70
70
|
PUBLIC_EVENTS: basePath ? `${publicBasePath}/events` : "/events",
|
|
71
|
-
PUBLIC_OFFERS: `${publicBasePath}/
|
|
71
|
+
PUBLIC_OFFERS: `${publicBasePath}/offers`,
|
|
72
|
+
PUBLIC_OFFERS_UPLOAD: `${publicBasePath}/v1/offers`,
|
|
72
73
|
});
|
|
73
74
|
};
|
|
74
75
|
exports.getBasePath = getBasePath;
|