@jh-tech/bff-update-feed-app-client 0.0.21 → 0.0.23
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/createClient.ts +42 -0
- package/dist/createClient.d.ts +221 -0
- package/dist/createClient.js +31 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/methods/authentication.d.ts +2 -2
- package/dist/methods/authentication.js +4 -4
- package/dist/methods/collectionActions.d.ts +2 -2
- package/dist/methods/collectionActions.js +4 -4
- package/dist/methods/collectionPage.d.ts +1 -1
- package/dist/methods/collectionPage.js +2 -2
- package/dist/methods/creatorActions.d.ts +2 -2
- package/dist/methods/creatorActions.js +4 -4
- package/dist/methods/creatorPage.d.ts +1 -1
- package/dist/methods/creatorPage.js +2 -2
- package/dist/methods/projectActions.d.ts +2 -2
- package/dist/methods/projectActions.js +4 -4
- package/dist/methods/projectFeed.d.ts +1 -1
- package/dist/methods/projectFeed.js +2 -2
- package/dist/methods/projectPage.d.ts +1 -1
- package/dist/methods/projectPage.js +2 -2
- package/dist/methods/searchCreatorAndProject.d.ts +1 -1
- package/dist/methods/searchCreatorAndProject.js +3 -3
- package/dist/methods/subscriptions.d.ts +2 -2
- package/dist/methods/subscriptions.js +4 -4
- package/dist/methods/updateFeed.d.ts +1 -1
- package/dist/methods/updateFeed.js +2 -2
- package/dist/methods/user.d.ts +1 -1
- package/dist/methods/user.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/index.ts +2 -1
- package/methods/authentication.ts +4 -4
- package/methods/collectionActions.ts +4 -2
- package/methods/collectionPage.ts +6 -2
- package/methods/creatorActions.ts +9 -3
- package/methods/creatorPage.ts +2 -2
- package/methods/projectActions.ts +9 -3
- package/methods/projectFeed.ts +6 -2
- package/methods/projectPage.ts +2 -2
- package/methods/searchCreatorAndProject.ts +7 -3
- package/methods/subscriptions.ts +12 -4
- package/methods/updateFeed.ts +6 -2
- package/methods/user.ts +2 -2
- package/package.json +3 -3
package/createClient.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { GetProjectFeedDef, GetUpdateFeedDef, SearchCreatorProjectDef } from '@jh-tech/bff-update-feed-app-shared'
|
|
2
|
+
import { ProcessingMethods } from 'jh-be-tools'
|
|
3
|
+
|
|
4
|
+
import { signIn, signUp } from './methods/authentication.js'
|
|
5
|
+
import { subscribeCollection, unsubscribeCollection } from './methods/collectionActions.js'
|
|
6
|
+
import { getCollectionPage } from './methods/collectionPage.js'
|
|
7
|
+
import { subscribeCreator, unsubscribeCreator } from './methods/creatorActions.js'
|
|
8
|
+
import { getCreatorPage } from './methods/creatorPage.js'
|
|
9
|
+
import { subscribeProject, unsubscribeProject } from './methods/projectActions.js'
|
|
10
|
+
import { getProjectFeed } from './methods/projectFeed.js'
|
|
11
|
+
import { getProjectPage } from './methods/projectPage.js'
|
|
12
|
+
import { searchCreatorAndProject } from './methods/searchCreatorAndProject.js'
|
|
13
|
+
import { getSubscribedCreators, getSubscribedProjects } from './methods/subscriptions.js'
|
|
14
|
+
import { getUpdateFeed } from './methods/updateFeed.js'
|
|
15
|
+
import { getUser } from './methods/user.js'
|
|
16
|
+
|
|
17
|
+
export const createClient = (baseUrl: string) => ({
|
|
18
|
+
signIn: (email: string, password: string, reqModifier: ProcessingMethods) => signIn(email, password, reqModifier, baseUrl),
|
|
19
|
+
signUp: (email: string, password: string, reqModifier: ProcessingMethods) => signUp(email, password, reqModifier, baseUrl),
|
|
20
|
+
getCollectionPage: (collectionId: string, reqModifier: ProcessingMethods) => getCollectionPage(collectionId, reqModifier, baseUrl),
|
|
21
|
+
subscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) =>
|
|
22
|
+
subscribeCollection(collectionId, userId, reqModifier, baseUrl),
|
|
23
|
+
unsubscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) =>
|
|
24
|
+
unsubscribeCollection(collectionId, userId, reqModifier, baseUrl),
|
|
25
|
+
getCreatorPage: (creatorId: string, reqModifier: ProcessingMethods) => getCreatorPage(creatorId, reqModifier, baseUrl),
|
|
26
|
+
subscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) => subscribeCreator(creatorId, userId, reqModifier, baseUrl),
|
|
27
|
+
unsubscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) =>
|
|
28
|
+
unsubscribeCreator(creatorId, userId, reqModifier, baseUrl),
|
|
29
|
+
getProjectPage: (projectId: string, reqModifier: ProcessingMethods) => getProjectPage(projectId, reqModifier, baseUrl),
|
|
30
|
+
subscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) => subscribeProject(projectId, userId, reqModifier, baseUrl),
|
|
31
|
+
unsubscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) =>
|
|
32
|
+
unsubscribeProject(projectId, userId, reqModifier, baseUrl),
|
|
33
|
+
getProjectFeed: (query: GetProjectFeedDef.Query, reqModifier: ProcessingMethods) => getProjectFeed(query, reqModifier, baseUrl),
|
|
34
|
+
getUpdateFeed: (query: GetUpdateFeedDef.Query, reqModifier: ProcessingMethods) => getUpdateFeed(query, reqModifier, baseUrl),
|
|
35
|
+
searchCreatorAndProject: (query: SearchCreatorProjectDef.Query, reqModifier: ProcessingMethods) =>
|
|
36
|
+
searchCreatorAndProject(query, reqModifier, baseUrl),
|
|
37
|
+
getSubscribedCreators: (userId: string, reqModifier: ProcessingMethods) => getSubscribedCreators(userId, reqModifier, baseUrl),
|
|
38
|
+
getSubscribedProjects: (userId: string, reqModifier: ProcessingMethods) => getSubscribedProjects(userId, reqModifier, baseUrl),
|
|
39
|
+
getUser: (userId: string, reqModifier: ProcessingMethods) => getUser(userId, reqModifier, baseUrl),
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
export type BffClient = ReturnType<typeof createClient>
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { GetProjectFeedDef, GetUpdateFeedDef, SearchCreatorProjectDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
|
+
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
+
export declare const createClient: (baseUrl: string) => {
|
|
4
|
+
signIn: (email: string, password: string, reqModifier: ProcessingMethods) => Promise<{
|
|
5
|
+
data: {
|
|
6
|
+
userId: string;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
signUp: (email: string, password: string, reqModifier: ProcessingMethods) => Promise<{
|
|
10
|
+
data: {
|
|
11
|
+
accessToken: string;
|
|
12
|
+
userId: string;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
getCollectionPage: (collectionId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
16
|
+
data: {
|
|
17
|
+
items: {
|
|
18
|
+
collectionId: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
title: string;
|
|
21
|
+
type: "movie" | "album" | "single" | "game" | "book" | "tv show" | "collection";
|
|
22
|
+
projectId?: string | undefined;
|
|
23
|
+
subCollectionId?: string | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
collection: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
subscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/collection.subscribe.js").Response>;
|
|
34
|
+
unsubscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/collection.unsubscribe.js").Response>;
|
|
35
|
+
getCreatorPage: (creatorId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
36
|
+
data: {
|
|
37
|
+
projects: {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
type: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
releaseDate?: string | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
creator: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
primaryRole: "studio" | "director" | "writer" | "actor" | "band" | "author" | "publisher" | "developer";
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
subscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/creator.subscribe.js").Response>;
|
|
57
|
+
unsubscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/creator.unsubscribe.js").Response>;
|
|
58
|
+
getProjectPage: (projectId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
59
|
+
data: {
|
|
60
|
+
updates: {
|
|
61
|
+
id: string;
|
|
62
|
+
title: string;
|
|
63
|
+
links: string[];
|
|
64
|
+
projectId: string;
|
|
65
|
+
publishedAt: string;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
}[];
|
|
68
|
+
project: {
|
|
69
|
+
id: string;
|
|
70
|
+
title: string;
|
|
71
|
+
type: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
releaseDate?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
creators: {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
role: "studio" | "director" | "writer" | "actor" | "band" | "author" | "publisher" | "developer";
|
|
81
|
+
primary: boolean;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
subscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/project.subscribe.js").Response>;
|
|
86
|
+
unsubscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) => Promise<import("@jh-tech/bff-update-feed-app-shared/dist/route-definitions/project.unsubscribe.js").Response>;
|
|
87
|
+
getProjectFeed: (query: GetProjectFeedDef.Query, reqModifier: ProcessingMethods) => Promise<{
|
|
88
|
+
data: {
|
|
89
|
+
id: string;
|
|
90
|
+
type: "project";
|
|
91
|
+
title: string;
|
|
92
|
+
projectType: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
93
|
+
primaryCreators: {
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
type: "collection" | "creator" | "project";
|
|
97
|
+
}[];
|
|
98
|
+
subscribedCreators: {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
type: "collection" | "creator" | "project";
|
|
102
|
+
}[];
|
|
103
|
+
collections: {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
type: "collection" | "creator" | "project";
|
|
107
|
+
}[];
|
|
108
|
+
createdAt: string;
|
|
109
|
+
}[];
|
|
110
|
+
meta?: {
|
|
111
|
+
cursor?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
getUpdateFeed: (query: GetUpdateFeedDef.Query, reqModifier: ProcessingMethods) => Promise<{
|
|
115
|
+
data: ({
|
|
116
|
+
id: string;
|
|
117
|
+
type: "update";
|
|
118
|
+
title: string;
|
|
119
|
+
links: string[];
|
|
120
|
+
projectType: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
121
|
+
project: {
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
type: "collection" | "creator" | "project";
|
|
125
|
+
};
|
|
126
|
+
primaryCreators: {
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
type: "collection" | "creator" | "project";
|
|
130
|
+
}[];
|
|
131
|
+
subscribedCreators: {
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
type: "collection" | "creator" | "project";
|
|
135
|
+
}[];
|
|
136
|
+
createdAt: string;
|
|
137
|
+
} | {
|
|
138
|
+
id: string;
|
|
139
|
+
type: "project";
|
|
140
|
+
title: string;
|
|
141
|
+
projectType: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
142
|
+
primaryCreators: {
|
|
143
|
+
id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
type: "collection" | "creator" | "project";
|
|
146
|
+
}[];
|
|
147
|
+
subscribedCreators: {
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
type: "collection" | "creator" | "project";
|
|
151
|
+
}[];
|
|
152
|
+
collections: {
|
|
153
|
+
id: string;
|
|
154
|
+
name: string;
|
|
155
|
+
type: "collection" | "creator" | "project";
|
|
156
|
+
}[];
|
|
157
|
+
createdAt: string;
|
|
158
|
+
} | {
|
|
159
|
+
id: string;
|
|
160
|
+
type: "collection";
|
|
161
|
+
name: string;
|
|
162
|
+
collection: {
|
|
163
|
+
id: string;
|
|
164
|
+
name: string;
|
|
165
|
+
type: "collection" | "creator" | "project";
|
|
166
|
+
};
|
|
167
|
+
createdAt: string;
|
|
168
|
+
})[];
|
|
169
|
+
meta?: {
|
|
170
|
+
cursor?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
searchCreatorAndProject: (query: SearchCreatorProjectDef.Query, reqModifier: ProcessingMethods) => Promise<{
|
|
174
|
+
data: {
|
|
175
|
+
name: string;
|
|
176
|
+
creatorId?: string | undefined;
|
|
177
|
+
projectId?: string | undefined;
|
|
178
|
+
collectionId?: string | undefined;
|
|
179
|
+
projectType?: "movie" | "album" | "single" | "game" | "book" | "tv show" | undefined;
|
|
180
|
+
creatorRole?: "studio" | "director" | "writer" | "actor" | "band" | "author" | "publisher" | "developer" | undefined;
|
|
181
|
+
}[];
|
|
182
|
+
meta?: {
|
|
183
|
+
cursor?: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
}>;
|
|
186
|
+
getSubscribedCreators: (userId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
187
|
+
data: {
|
|
188
|
+
creators: {
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
primaryRole: "studio" | "director" | "writer" | "actor" | "band" | "author" | "publisher" | "developer";
|
|
192
|
+
createdAt: string;
|
|
193
|
+
updatedAt: string;
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
}>;
|
|
198
|
+
getSubscribedProjects: (userId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
199
|
+
data: {
|
|
200
|
+
projects: {
|
|
201
|
+
id: string;
|
|
202
|
+
title: string;
|
|
203
|
+
type: "movie" | "album" | "single" | "game" | "book" | "tv show";
|
|
204
|
+
createdAt: string;
|
|
205
|
+
updatedAt: string;
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
releaseDate?: string | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
};
|
|
210
|
+
}>;
|
|
211
|
+
getUser: (userId: string, reqModifier: ProcessingMethods) => Promise<{
|
|
212
|
+
data: {
|
|
213
|
+
subscriptions: {
|
|
214
|
+
projectIds: string[];
|
|
215
|
+
creatorIds: string[];
|
|
216
|
+
collectionIds: string[];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
}>;
|
|
220
|
+
};
|
|
221
|
+
export type BffClient = ReturnType<typeof createClient>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { signIn, signUp } from './methods/authentication.js';
|
|
2
|
+
import { subscribeCollection, unsubscribeCollection } from './methods/collectionActions.js';
|
|
3
|
+
import { getCollectionPage } from './methods/collectionPage.js';
|
|
4
|
+
import { subscribeCreator, unsubscribeCreator } from './methods/creatorActions.js';
|
|
5
|
+
import { getCreatorPage } from './methods/creatorPage.js';
|
|
6
|
+
import { subscribeProject, unsubscribeProject } from './methods/projectActions.js';
|
|
7
|
+
import { getProjectFeed } from './methods/projectFeed.js';
|
|
8
|
+
import { getProjectPage } from './methods/projectPage.js';
|
|
9
|
+
import { searchCreatorAndProject } from './methods/searchCreatorAndProject.js';
|
|
10
|
+
import { getSubscribedCreators, getSubscribedProjects } from './methods/subscriptions.js';
|
|
11
|
+
import { getUpdateFeed } from './methods/updateFeed.js';
|
|
12
|
+
import { getUser } from './methods/user.js';
|
|
13
|
+
export const createClient = (baseUrl) => ({
|
|
14
|
+
signIn: (email, password, reqModifier) => signIn(email, password, reqModifier, baseUrl),
|
|
15
|
+
signUp: (email, password, reqModifier) => signUp(email, password, reqModifier, baseUrl),
|
|
16
|
+
getCollectionPage: (collectionId, reqModifier) => getCollectionPage(collectionId, reqModifier, baseUrl),
|
|
17
|
+
subscribeCollection: (collectionId, userId, reqModifier) => subscribeCollection(collectionId, userId, reqModifier, baseUrl),
|
|
18
|
+
unsubscribeCollection: (collectionId, userId, reqModifier) => unsubscribeCollection(collectionId, userId, reqModifier, baseUrl),
|
|
19
|
+
getCreatorPage: (creatorId, reqModifier) => getCreatorPage(creatorId, reqModifier, baseUrl),
|
|
20
|
+
subscribeCreator: (creatorId, userId, reqModifier) => subscribeCreator(creatorId, userId, reqModifier, baseUrl),
|
|
21
|
+
unsubscribeCreator: (creatorId, userId, reqModifier) => unsubscribeCreator(creatorId, userId, reqModifier, baseUrl),
|
|
22
|
+
getProjectPage: (projectId, reqModifier) => getProjectPage(projectId, reqModifier, baseUrl),
|
|
23
|
+
subscribeProject: (projectId, userId, reqModifier) => subscribeProject(projectId, userId, reqModifier, baseUrl),
|
|
24
|
+
unsubscribeProject: (projectId, userId, reqModifier) => unsubscribeProject(projectId, userId, reqModifier, baseUrl),
|
|
25
|
+
getProjectFeed: (query, reqModifier) => getProjectFeed(query, reqModifier, baseUrl),
|
|
26
|
+
getUpdateFeed: (query, reqModifier) => getUpdateFeed(query, reqModifier, baseUrl),
|
|
27
|
+
searchCreatorAndProject: (query, reqModifier) => searchCreatorAndProject(query, reqModifier, baseUrl),
|
|
28
|
+
getSubscribedCreators: (userId, reqModifier) => getSubscribedCreators(userId, reqModifier, baseUrl),
|
|
29
|
+
getSubscribedProjects: (userId, reqModifier) => getSubscribedProjects(userId, reqModifier, baseUrl),
|
|
30
|
+
getUser: (userId, reqModifier) => getUser(userId, reqModifier, baseUrl),
|
|
31
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createClient } from './createClient.js';
|
|
2
2
|
export * from '@jh-tech/bff-update-feed-app-shared';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AuthSignInDef, AuthSignUpDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const signIn: (email: string, password: string, reqModifier: ProcessingMethods) => Promise<AuthSignInDef.Response>;
|
|
4
|
-
export declare const signUp: (email: string, password: string, reqModifier: ProcessingMethods) => Promise<AuthSignUpDef.Response>;
|
|
3
|
+
export declare const signIn: (email: string, password: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<AuthSignInDef.Response>;
|
|
4
|
+
export declare const signUp: (email: string, password: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<AuthSignUpDef.Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthSignInDef, AuthSignUpDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const signIn = async (email, password, reqModifier) => {
|
|
4
|
+
export const signIn = async (email, password, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = {
|
|
6
6
|
body: {
|
|
7
7
|
data: {
|
|
@@ -16,12 +16,12 @@ export const signIn = async (email, password, reqModifier) => {
|
|
|
16
16
|
const definition = AuthSignInDef.definition;
|
|
17
17
|
return await request({
|
|
18
18
|
queryData,
|
|
19
|
-
baseUrl
|
|
19
|
+
baseUrl,
|
|
20
20
|
serviceName,
|
|
21
21
|
definition,
|
|
22
22
|
}, reqModifier);
|
|
23
23
|
};
|
|
24
|
-
export const signUp = async (email, password, reqModifier) => {
|
|
24
|
+
export const signUp = async (email, password, reqModifier, baseUrl) => {
|
|
25
25
|
const queryData = {
|
|
26
26
|
body: {
|
|
27
27
|
data: {
|
|
@@ -33,7 +33,7 @@ export const signUp = async (email, password, reqModifier) => {
|
|
|
33
33
|
const definition = AuthSignUpDef.definition;
|
|
34
34
|
return await request({
|
|
35
35
|
queryData,
|
|
36
|
-
baseUrl
|
|
36
|
+
baseUrl,
|
|
37
37
|
serviceName,
|
|
38
38
|
definition,
|
|
39
39
|
}, reqModifier);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CollectionSubscribeDef, CollectionUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const subscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) => Promise<CollectionSubscribeDef.Response>;
|
|
4
|
-
export declare const unsubscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods) => Promise<CollectionUnsubscribeDef.Response>;
|
|
3
|
+
export declare const subscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<CollectionSubscribeDef.Response>;
|
|
4
|
+
export declare const unsubscribeCollection: (collectionId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<CollectionUnsubscribeDef.Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollectionSubscribeDef, CollectionUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const subscribeCollection = async (collectionId, userId, reqModifier) => {
|
|
4
|
+
export const subscribeCollection = async (collectionId, userId, reqModifier, baseUrl) => {
|
|
5
5
|
const definition = CollectionSubscribeDef.definition;
|
|
6
6
|
const queryData = {
|
|
7
7
|
query: { userId },
|
|
@@ -9,12 +9,12 @@ export const subscribeCollection = async (collectionId, userId, reqModifier) =>
|
|
|
9
9
|
};
|
|
10
10
|
return await request({
|
|
11
11
|
queryData,
|
|
12
|
-
baseUrl
|
|
12
|
+
baseUrl,
|
|
13
13
|
serviceName,
|
|
14
14
|
definition,
|
|
15
15
|
}, reqModifier);
|
|
16
16
|
};
|
|
17
|
-
export const unsubscribeCollection = async (collectionId, userId, reqModifier) => {
|
|
17
|
+
export const unsubscribeCollection = async (collectionId, userId, reqModifier, baseUrl) => {
|
|
18
18
|
const definition = CollectionUnsubscribeDef.definition;
|
|
19
19
|
const queryData = {
|
|
20
20
|
query: { userId },
|
|
@@ -22,7 +22,7 @@ export const unsubscribeCollection = async (collectionId, userId, reqModifier) =
|
|
|
22
22
|
};
|
|
23
23
|
return await request({
|
|
24
24
|
queryData,
|
|
25
|
-
baseUrl
|
|
25
|
+
baseUrl,
|
|
26
26
|
serviceName,
|
|
27
27
|
definition,
|
|
28
28
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GetCollectionPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getCollectionPage: (collectionId: string, reqModifier: ProcessingMethods) => Promise<GetCollectionPageDef.Response>;
|
|
3
|
+
export declare const getCollectionPage: (collectionId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetCollectionPageDef.Response>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GetCollectionPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const getCollectionPage = async (collectionId, reqModifier) => {
|
|
4
|
+
export const getCollectionPage = async (collectionId, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = {
|
|
6
6
|
params: { collectionId },
|
|
7
7
|
};
|
|
8
8
|
const definition = GetCollectionPageDef.definition;
|
|
9
9
|
return await request({
|
|
10
10
|
queryData: { ...queryData },
|
|
11
|
-
baseUrl
|
|
11
|
+
baseUrl,
|
|
12
12
|
serviceName,
|
|
13
13
|
definition,
|
|
14
14
|
}, reqModifier);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CreatorSubscribeDef, CreatorUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const subscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) => Promise<CreatorSubscribeDef.Response>;
|
|
4
|
-
export declare const unsubscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods) => Promise<CreatorUnsubscribeDef.Response>;
|
|
3
|
+
export declare const subscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<CreatorSubscribeDef.Response>;
|
|
4
|
+
export declare const unsubscribeCreator: (creatorId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<CreatorUnsubscribeDef.Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreatorSubscribeDef, CreatorUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const subscribeCreator = async (creatorId, userId, reqModifier) => {
|
|
4
|
+
export const subscribeCreator = async (creatorId, userId, reqModifier, baseUrl) => {
|
|
5
5
|
const definition = CreatorSubscribeDef.definition;
|
|
6
6
|
const queryData = {
|
|
7
7
|
query: { userId },
|
|
@@ -9,12 +9,12 @@ export const subscribeCreator = async (creatorId, userId, reqModifier) => {
|
|
|
9
9
|
};
|
|
10
10
|
return await request({
|
|
11
11
|
queryData,
|
|
12
|
-
baseUrl
|
|
12
|
+
baseUrl,
|
|
13
13
|
serviceName,
|
|
14
14
|
definition,
|
|
15
15
|
}, reqModifier);
|
|
16
16
|
};
|
|
17
|
-
export const unsubscribeCreator = async (creatorId, userId, reqModifier) => {
|
|
17
|
+
export const unsubscribeCreator = async (creatorId, userId, reqModifier, baseUrl) => {
|
|
18
18
|
const definition = CreatorUnsubscribeDef.definition;
|
|
19
19
|
const queryData = {
|
|
20
20
|
query: { userId },
|
|
@@ -22,7 +22,7 @@ export const unsubscribeCreator = async (creatorId, userId, reqModifier) => {
|
|
|
22
22
|
};
|
|
23
23
|
return await request({
|
|
24
24
|
queryData,
|
|
25
|
-
baseUrl
|
|
25
|
+
baseUrl,
|
|
26
26
|
serviceName,
|
|
27
27
|
definition,
|
|
28
28
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GetCreatorPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getCreatorPage: (creatorId: string, reqModifier: ProcessingMethods) => Promise<GetCreatorPageDef.Response>;
|
|
3
|
+
export declare const getCreatorPage: (creatorId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetCreatorPageDef.Response>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GetCreatorPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const getCreatorPage = async (creatorId, reqModifier) => {
|
|
4
|
+
export const getCreatorPage = async (creatorId, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = {
|
|
6
6
|
params: { creatorId },
|
|
7
7
|
};
|
|
8
8
|
const definition = GetCreatorPageDef.definition;
|
|
9
9
|
return await request({
|
|
10
10
|
queryData: { ...queryData },
|
|
11
|
-
baseUrl
|
|
11
|
+
baseUrl,
|
|
12
12
|
serviceName,
|
|
13
13
|
definition,
|
|
14
14
|
}, reqModifier);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ProjectSubscribeDef, ProjectUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const subscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) => Promise<ProjectSubscribeDef.Response>;
|
|
4
|
-
export declare const unsubscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods) => Promise<ProjectUnsubscribeDef.Response>;
|
|
3
|
+
export declare const subscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<ProjectSubscribeDef.Response>;
|
|
4
|
+
export declare const unsubscribeProject: (projectId: string, userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<ProjectUnsubscribeDef.Response>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProjectSubscribeDef, ProjectUnsubscribeDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const subscribeProject = async (projectId, userId, reqModifier) => {
|
|
4
|
+
export const subscribeProject = async (projectId, userId, reqModifier, baseUrl) => {
|
|
5
5
|
const definition = ProjectSubscribeDef.definition;
|
|
6
6
|
const queryData = {
|
|
7
7
|
query: { userId },
|
|
@@ -9,12 +9,12 @@ export const subscribeProject = async (projectId, userId, reqModifier) => {
|
|
|
9
9
|
};
|
|
10
10
|
return await request({
|
|
11
11
|
queryData,
|
|
12
|
-
baseUrl
|
|
12
|
+
baseUrl,
|
|
13
13
|
serviceName,
|
|
14
14
|
definition,
|
|
15
15
|
}, reqModifier);
|
|
16
16
|
};
|
|
17
|
-
export const unsubscribeProject = async (projectId, userId, reqModifier) => {
|
|
17
|
+
export const unsubscribeProject = async (projectId, userId, reqModifier, baseUrl) => {
|
|
18
18
|
const definition = ProjectUnsubscribeDef.definition;
|
|
19
19
|
const queryData = {
|
|
20
20
|
query: { userId },
|
|
@@ -22,7 +22,7 @@ export const unsubscribeProject = async (projectId, userId, reqModifier) => {
|
|
|
22
22
|
};
|
|
23
23
|
return await request({
|
|
24
24
|
queryData,
|
|
25
|
-
baseUrl
|
|
25
|
+
baseUrl,
|
|
26
26
|
serviceName,
|
|
27
27
|
definition,
|
|
28
28
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GetProjectFeedDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getProjectFeed: (query: GetProjectFeedDef.Query, reqModifier: ProcessingMethods) => Promise<GetProjectFeedDef.Response>;
|
|
3
|
+
export declare const getProjectFeed: (query: GetProjectFeedDef.Query, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetProjectFeedDef.Response>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GetProjectFeedDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const getProjectFeed = async (query, reqModifier) => {
|
|
4
|
+
export const getProjectFeed = async (query, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = {
|
|
6
6
|
query,
|
|
7
7
|
};
|
|
8
8
|
const definition = GetProjectFeedDef.definition;
|
|
9
9
|
return await request({
|
|
10
10
|
queryData,
|
|
11
|
-
baseUrl
|
|
11
|
+
baseUrl,
|
|
12
12
|
serviceName,
|
|
13
13
|
definition,
|
|
14
14
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GetProjectPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getProjectPage: (projectId: string, reqModifier: ProcessingMethods) => Promise<GetProjectPageDef.Response>;
|
|
3
|
+
export declare const getProjectPage: (projectId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetProjectPageDef.Response>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetProjectPageDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const getProjectPage = async (projectId, reqModifier) => {
|
|
4
|
+
export const getProjectPage = async (projectId, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = { params: { projectId } };
|
|
6
6
|
const definition = GetProjectPageDef.definition;
|
|
7
7
|
return await request({
|
|
8
8
|
queryData,
|
|
9
|
-
baseUrl
|
|
9
|
+
baseUrl,
|
|
10
10
|
serviceName,
|
|
11
11
|
definition,
|
|
12
12
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SearchCreatorProjectDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const searchCreatorAndProject: (
|
|
3
|
+
export declare const searchCreatorAndProject: (query: SearchCreatorProjectDef.Query, reqModifier: ProcessingMethods, baseUrl: string) => Promise<SearchCreatorProjectDef.Response>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SearchCreatorProjectDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const searchCreatorAndProject = async (
|
|
5
|
-
const queryData = { query
|
|
4
|
+
export const searchCreatorAndProject = async (query, reqModifier, baseUrl) => {
|
|
5
|
+
const queryData = { query };
|
|
6
6
|
const definition = SearchCreatorProjectDef.definition;
|
|
7
7
|
return await request({
|
|
8
8
|
queryData,
|
|
9
|
-
baseUrl
|
|
9
|
+
baseUrl,
|
|
10
10
|
serviceName,
|
|
11
11
|
definition,
|
|
12
12
|
}, reqModifier);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GetSubscribedCreatorsDef, GetSubscribedProjectsDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getSubscribedCreators: (userId: string, reqModifier: ProcessingMethods) => Promise<GetSubscribedCreatorsDef.Response>;
|
|
4
|
-
export declare const getSubscribedProjects: (userId: string, reqModifier: ProcessingMethods) => Promise<GetSubscribedProjectsDef.Response>;
|
|
3
|
+
export declare const getSubscribedCreators: (userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetSubscribedCreatorsDef.Response>;
|
|
4
|
+
export declare const getSubscribedProjects: (userId: string, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetSubscribedProjectsDef.Response>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { GetSubscribedCreatorsDef, GetSubscribedProjectsDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { request } from 'jh-be-tools';
|
|
3
3
|
import { serviceName } from './const.js';
|
|
4
|
-
export const getSubscribedCreators = async (userId, reqModifier) => {
|
|
4
|
+
export const getSubscribedCreators = async (userId, reqModifier, baseUrl) => {
|
|
5
5
|
const queryData = {
|
|
6
6
|
query: { userId },
|
|
7
7
|
};
|
|
8
8
|
const definition = GetSubscribedCreatorsDef.definition;
|
|
9
9
|
return await request({
|
|
10
10
|
queryData: { ...queryData },
|
|
11
|
-
baseUrl
|
|
11
|
+
baseUrl,
|
|
12
12
|
serviceName,
|
|
13
13
|
definition,
|
|
14
14
|
}, reqModifier);
|
|
15
15
|
};
|
|
16
|
-
export const getSubscribedProjects = async (userId, reqModifier) => {
|
|
16
|
+
export const getSubscribedProjects = async (userId, reqModifier, baseUrl) => {
|
|
17
17
|
const queryData = {
|
|
18
18
|
query: { userId },
|
|
19
19
|
};
|
|
20
20
|
const definition = GetSubscribedProjectsDef.definition;
|
|
21
21
|
return await request({
|
|
22
22
|
queryData: { ...queryData },
|
|
23
|
-
baseUrl
|
|
23
|
+
baseUrl,
|
|
24
24
|
serviceName,
|
|
25
25
|
definition,
|
|
26
26
|
}, reqModifier);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GetUpdateFeedDef } from '@jh-tech/bff-update-feed-app-shared';
|
|
2
2
|
import { ProcessingMethods } from 'jh-be-tools';
|
|
3
|
-
export declare const getUpdateFeed: (query: GetUpdateFeedDef.Query, reqModifier: ProcessingMethods) => Promise<GetUpdateFeedDef.Response>;
|
|
3
|
+
export declare const getUpdateFeed: (query: GetUpdateFeedDef.Query, reqModifier: ProcessingMethods, baseUrl: string) => Promise<GetUpdateFeedDef.Response>;
|