@hubs101/js-api-skd-client 1.0.10658 → 1.0.10660
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.
|
@@ -118,6 +118,10 @@ export type FeedType = {
|
|
|
118
118
|
language: string;
|
|
119
119
|
updated_by?: string;
|
|
120
120
|
updated_at: string;
|
|
121
|
+
start_date?: string;
|
|
122
|
+
end_date?: string;
|
|
123
|
+
start_time?: string;
|
|
124
|
+
end_time?: string;
|
|
121
125
|
};
|
|
122
126
|
export type FeedDetailsType = {
|
|
123
127
|
id: string;
|
|
@@ -150,6 +154,10 @@ export type FeedDetailsType = {
|
|
|
150
154
|
language: string;
|
|
151
155
|
updated_by?: string;
|
|
152
156
|
updated_at: string;
|
|
157
|
+
start_date?: string;
|
|
158
|
+
end_date?: string;
|
|
159
|
+
start_time?: string;
|
|
160
|
+
end_time?: string;
|
|
153
161
|
};
|
|
154
162
|
export type FeedInputType = {
|
|
155
163
|
headline: string;
|
|
@@ -173,4 +181,8 @@ export type FeedInputType = {
|
|
|
173
181
|
events: string;
|
|
174
182
|
portfolios: string;
|
|
175
183
|
language: string;
|
|
184
|
+
start_date?: string;
|
|
185
|
+
end_date?: string;
|
|
186
|
+
start_time?: string;
|
|
187
|
+
end_time?: string;
|
|
176
188
|
};
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export declare const _deleteStream: (basePath: string, token: string, streamId:
|
|
|
102
102
|
export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
|
|
103
103
|
export declare const _fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
|
|
104
104
|
export declare const _createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
105
|
-
export declare const _importExhibition: (basePath: string, token: string, eventId: string,
|
|
105
|
+
export declare const _importExhibition: (basePath: string, token: string, eventId: string, exhibitionsList: string) => Promise<APIResponse>;
|
|
106
106
|
export declare const _updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
107
107
|
export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
|
|
108
108
|
export declare const _importOnboardingQuestions: (basePath: string, token: string, eventId: string, eventSource: string, removeAnswers?: boolean) => Promise<APIResponse>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -574,10 +574,10 @@ const _createExhibition = (basePath, token, files, data) => __awaiter(void 0, vo
|
|
|
574
574
|
return (exhibition === null || exhibition === void 0 ? void 0 : exhibition.data) || exhibition;
|
|
575
575
|
});
|
|
576
576
|
exports._createExhibition = _createExhibition;
|
|
577
|
-
const _importExhibition = (basePath, token, eventId,
|
|
577
|
+
const _importExhibition = (basePath, token, eventId, exhibitionsList) => __awaiter(void 0, void 0, void 0, function* () {
|
|
578
578
|
const base = (0, base_1.getBasePath)(basePath);
|
|
579
579
|
const response = yield (0, api_1.postRequest)(`${base.EVENTS}/${eventId}/import/exhibitions`, {
|
|
580
|
-
|
|
580
|
+
exhibitions_list: exhibitionsList,
|
|
581
581
|
}, token);
|
|
582
582
|
return response;
|
|
583
583
|
});
|
package/lib/index.js
CHANGED
|
@@ -1001,9 +1001,9 @@ function EventAPIProvider(props) {
|
|
|
1001
1001
|
(0, api_1.validateConfig)(config);
|
|
1002
1002
|
return (0, event_1._createExhibition)(config.baseUrl, config.token, files, data);
|
|
1003
1003
|
}), [config, config.baseUrl, config.token]);
|
|
1004
|
-
const importExhibition = react_1.default.useCallback((eventId,
|
|
1004
|
+
const importExhibition = react_1.default.useCallback((eventId, exhibitionsList) => __awaiter(this, void 0, void 0, function* () {
|
|
1005
1005
|
(0, api_1.validateConfig)(config);
|
|
1006
|
-
return (0, event_1._importExhibition)(config.baseUrl, config.token, eventId,
|
|
1006
|
+
return (0, event_1._importExhibition)(config.baseUrl, config.token, eventId, exhibitionsList);
|
|
1007
1007
|
}), [config, config.baseUrl, config.token]);
|
|
1008
1008
|
const importOnboardingQuestions = react_1.default.useCallback((eventId, eventSource, removeAnswers) => __awaiter(this, void 0, void 0, function* () {
|
|
1009
1009
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -306,7 +306,7 @@ export type BaseAPIType = {
|
|
|
306
306
|
fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
|
|
307
307
|
fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
|
|
308
308
|
createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
309
|
-
importExhibition: (basePath: string, token: string, eventId: string,
|
|
309
|
+
importExhibition: (basePath: string, token: string, eventId: string, exhibitionsList: string) => Promise<APIResponse>;
|
|
310
310
|
updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
311
311
|
deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
|
|
312
312
|
importOnboardingQuestions: (basePath: string, token: string, eventId: string, eventSource: string, removeAnswers?: boolean) => Promise<APIResponse>;
|
|
@@ -645,7 +645,7 @@ export type EventAPIType = {
|
|
|
645
645
|
fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>;
|
|
646
646
|
fetchMyExhibitions: () => Promise<Exhibition[]>;
|
|
647
647
|
createExhibition: (files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
648
|
-
importExhibition: (eventId: string,
|
|
648
|
+
importExhibition: (eventId: string, exhibitionsList: string) => Promise<APIResponse>;
|
|
649
649
|
updateExhibition: (exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
650
650
|
deleteExhibition: (exhibitionId: string) => Promise<APIResponse>;
|
|
651
651
|
importOnboardingQuestions: (eventId: string, eventSource: string, removeAnswers?: boolean) => Promise<APIResponse>;
|