@hubs101/js-api-skd-client 1.0.10332 → 1.0.10334
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/README.md +1 -1
- package/lib/api/attendee/types.d.ts +18 -2
- package/lib/api/event/index.js +1 -1
- package/lib/api/event/types.d.ts +14 -7
- package/lib/api/sessions/types.d.ts +3 -2
- package/lib/constants/api.d.ts +0 -2
- package/lib/constants/api.js +0 -2
- package/lib/types/base.d.ts +0 -1
- package/lib/utils/base.js +0 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Accessing API via stateless interface:
|
|
|
20
20
|
|
|
21
21
|
## Creating new release
|
|
22
22
|
|
|
23
|
-
1. Commit al changes to git
|
|
23
|
+
1. Commit al changes to git
|
|
24
24
|
2. Prepare build: `npm run build`
|
|
25
25
|
3. Create new patch version run: `npm version patch`
|
|
26
26
|
4. Publish package to NPM: `npm publish`
|
|
@@ -282,12 +282,28 @@ export type Note = {
|
|
|
282
282
|
message: string;
|
|
283
283
|
reference: string;
|
|
284
284
|
event: string;
|
|
285
|
-
detail
|
|
285
|
+
detail?: {
|
|
286
|
+
title: string;
|
|
287
|
+
subtitle: {
|
|
288
|
+
start_date: string;
|
|
289
|
+
end_date: string;
|
|
290
|
+
};
|
|
291
|
+
url: string;
|
|
292
|
+
eventName: string;
|
|
293
|
+
};
|
|
286
294
|
updateDate: string;
|
|
287
295
|
};
|
|
288
296
|
export type NoteUpdateInput = {
|
|
289
297
|
message: string;
|
|
290
|
-
detail?:
|
|
298
|
+
detail?: {
|
|
299
|
+
title: string;
|
|
300
|
+
subtitle: {
|
|
301
|
+
start_date: string;
|
|
302
|
+
end_date: string;
|
|
303
|
+
};
|
|
304
|
+
url: string;
|
|
305
|
+
eventName: string;
|
|
306
|
+
};
|
|
291
307
|
};
|
|
292
308
|
export type NoteInput = {
|
|
293
309
|
type: NOTE_TYPE;
|
package/lib/api/event/index.js
CHANGED
|
@@ -553,7 +553,7 @@ const _deleteExhibition = (basePath, token, exhibitionId) => __awaiter(void 0, v
|
|
|
553
553
|
exports._deleteExhibition = _deleteExhibition;
|
|
554
554
|
const _fetchPortfolios = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
555
555
|
const base = (0, base_1.getBasePath)(basePath);
|
|
556
|
-
const { data: accountPortfolios } = yield (0, api_1.getRequest)(`${base.
|
|
556
|
+
const { data: accountPortfolios } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/portfolios`, token);
|
|
557
557
|
return accountPortfolios;
|
|
558
558
|
});
|
|
559
559
|
exports._fetchPortfolios = _fetchPortfolios;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -758,14 +758,21 @@ export type DiscountServerResponse = {
|
|
|
758
758
|
};
|
|
759
759
|
export type Portfolio = {
|
|
760
760
|
id: string;
|
|
761
|
-
account?: string;
|
|
762
761
|
name: string;
|
|
763
762
|
slug: string;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
763
|
+
website: string;
|
|
764
|
+
description_de: string;
|
|
765
|
+
description_en: string;
|
|
766
|
+
tags_de: string[];
|
|
767
|
+
tags_en: string[];
|
|
768
|
+
design: Design;
|
|
769
|
+
belong_to: string;
|
|
770
|
+
published: number;
|
|
771
|
+
created_at: string | null;
|
|
772
|
+
updated_at: string | null;
|
|
773
|
+
deleted_at: string | null;
|
|
774
|
+
created_by: string | null;
|
|
775
|
+
updated_by: string | null;
|
|
776
|
+
deleted_by: string | null;
|
|
770
777
|
};
|
|
771
778
|
export {};
|
|
@@ -61,8 +61,9 @@ export type SessionServerResponse = {
|
|
|
61
61
|
advertisement?: PrerecordedVideo | null;
|
|
62
62
|
collaboration: Collaboration;
|
|
63
63
|
priority: number;
|
|
64
|
+
speakers?: Attendee[];
|
|
65
|
+
documents?: DocumentType[];
|
|
64
66
|
promoted_at: string;
|
|
65
|
-
speakers?: any[];
|
|
66
67
|
};
|
|
67
68
|
export type PrerecordedVideo = {
|
|
68
69
|
videoType: string;
|
|
@@ -102,10 +103,10 @@ export type SessionFull = {
|
|
|
102
103
|
heartCount: number;
|
|
103
104
|
priority: number;
|
|
104
105
|
discussion: SessionDiscussion | null;
|
|
105
|
-
documents: DocumentType[];
|
|
106
106
|
like_list: string[];
|
|
107
107
|
watch_list: string[];
|
|
108
108
|
speakers: Attendee[];
|
|
109
|
+
documents: DocumentType[];
|
|
109
110
|
};
|
|
110
111
|
export type SessionDiscussion = {
|
|
111
112
|
commentCount: number;
|
package/lib/constants/api.d.ts
CHANGED
|
@@ -57,7 +57,6 @@ export declare const API_PROD_PATH: Readonly<{
|
|
|
57
57
|
LOCATIONS: `${string}/locations`;
|
|
58
58
|
PAGES: `${string}/pages`;
|
|
59
59
|
PORTFOLIOS: `${string}/portfolios`;
|
|
60
|
-
ACCOUNT: `${string}/account`;
|
|
61
60
|
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
62
61
|
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
63
62
|
INVITATION: `${string}/invitation`;
|
|
@@ -112,7 +111,6 @@ export declare const API_STAGE_PATH: Readonly<{
|
|
|
112
111
|
LOCATIONS: `${string}/locations`;
|
|
113
112
|
PAGES: `${string}/pages`;
|
|
114
113
|
PORTFOLIOS: `${string}/portfolios`;
|
|
115
|
-
ACCOUNT: `${string}/account`;
|
|
116
114
|
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
117
115
|
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
118
116
|
INVITATION: `${string}/invitation`;
|
package/lib/constants/api.js
CHANGED
|
@@ -59,7 +59,6 @@ exports.API_PROD_PATH = Object.freeze({
|
|
|
59
59
|
LOCATIONS: `${exports.PRODUCTION_URL}/locations`,
|
|
60
60
|
PAGES: `${exports.PRODUCTION_URL}/pages`,
|
|
61
61
|
PORTFOLIOS: `${exports.PRODUCTION_URL}/portfolios`,
|
|
62
|
-
ACCOUNT: `${exports.PRODUCTION_URL}/account`,
|
|
63
62
|
PAYMENT_ACCOUNTS: `${exports.PRODUCTION_URL}/payment-account`,
|
|
64
63
|
ACCOUNT_TRIAL: `${exports.UNAUTHORIZED_PRODUCTION_URL}/accounts/trial`,
|
|
65
64
|
INVITATION: `${exports.UNAUTHORIZED_PRODUCTION_URL}/invitation`,
|
|
@@ -114,7 +113,6 @@ exports.API_STAGE_PATH = Object.freeze({
|
|
|
114
113
|
LOCATIONS: `${exports.STAGING_URL}/locations`,
|
|
115
114
|
PAGES: `${exports.STAGING_URL}/pages`,
|
|
116
115
|
PORTFOLIOS: `${exports.STAGING_URL}/portfolios`,
|
|
117
|
-
ACCOUNT: `${exports.STAGING_URL}/account`,
|
|
118
116
|
PAYMENT_ACCOUNTS: `${exports.STAGING_URL}/payment-account`,
|
|
119
117
|
ACCOUNT_TRIAL: `${exports.UNAUTHORIZED_STAGING_URL}/accounts/trial`,
|
|
120
118
|
INVITATION: `${exports.UNAUTHORIZED_STAGING_URL}/invitation`,
|
package/lib/types/base.d.ts
CHANGED
package/lib/utils/base.js
CHANGED
|
@@ -7,7 +7,6 @@ const getBasePath = (basePath) => {
|
|
|
7
7
|
const publicBasePath = `${basePath}/public`;
|
|
8
8
|
return Object.freeze({
|
|
9
9
|
ACCOUNTS: `${authorizedBasePath}/accounts`,
|
|
10
|
-
ACCOUNT: `${authorizedBasePath}/account`,
|
|
11
10
|
PORTFOLIOS: `${authorizedBasePath}/portfolios`,
|
|
12
11
|
ADMIN: `${authorizedBasePath}/admin`,
|
|
13
12
|
ATTENDEES: `${authorizedBasePath}/attendees`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubs101/js-api-skd-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10334",
|
|
4
4
|
"author": "Liveware",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --config jestconfig.json",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@hubs101/js-api-skd-client": "^1.0.10314",
|
|
30
31
|
"@types/react": "*",
|
|
31
32
|
"react": "^18.2.0"
|
|
32
33
|
},
|