Skip to content

Commit c0f6b94

Browse files
committed
Remove unsused Groups endpoints
1 parent 8335b48 commit c0f6b94

27 files changed

Lines changed: 7 additions & 1364 deletions

lib/index.d.ts

Lines changed: 6 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,16 @@ export module "recombee-api-client" {
257257
): string
258258
}
259259

260-
type Response = Item | PropertyInfo | UpdateMoreItemsResponse | DeleteMoreItemsResponse | Series | SeriesItem | Group | GroupItem | User | DetailView | Purchase | Rating | CartAddition | Bookmark | ViewPortion | RecommendationResponse | SearchResponse | SearchSynonym | ListSearchSynonymsResponse | ListSegmentationsResponse | Segmentation;
260+
type Response = Item | PropertyInfo | UpdateMoreItemsResponse | DeleteMoreItemsResponse | Series | SeriesItem | User | DetailView | Purchase | Rating | CartAddition | Bookmark | ViewPortion | RecommendationResponse | SearchResponse | SearchSynonym | ListSearchSynonymsResponse | ListSegmentationsResponse | Segmentation;
261261

262262
export type Item = {
263263
itemId: string;
264264
values?: { [key: string]: unknown };
265265
}
266266

267267
export type PropertyInfo = {
268-
name?: string;
269-
type?: string;
268+
name: string;
269+
type: string;
270270
}
271271

272272
export type UpdateMoreItemsResponse = {
@@ -290,16 +290,6 @@ export module "recombee-api-client" {
290290
cascadeCreate?: boolean;
291291
}
292292

293-
export type Group = {
294-
groupId: string;
295-
}
296-
297-
export type GroupItem = {
298-
itemType: string;
299-
itemId: string;
300-
cascadeCreate?: boolean;
301-
}
302-
303293
export type User = {
304294
userId: string;
305295
values?: { [key: string]: unknown };
@@ -519,7 +509,7 @@ export module "recombee-api-client" {
519509
}
520510

521511
/**
522-
* Adding an item property is somehow equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
512+
* Adding an item property is somewhat equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
523513
*/
524514
export class AddItemProperty extends requests.Request {
525515
/**
@@ -824,154 +814,6 @@ export module "recombee-api-client" {
824814
};
825815
}
826816

827-
/**
828-
* Creates a new group in the database.
829-
*/
830-
export class AddGroup extends requests.Request {
831-
/**
832-
* @param groupId - ID of the group to be created.
833-
*/
834-
constructor(
835-
groupId: string,
836-
);
837-
838-
groupId: string;
839-
protected __response_type: string;
840-
841-
bodyParameters(): {
842-
};
843-
844-
queryParameters(): {
845-
};
846-
}
847-
848-
/**
849-
* Deletes the group of the given `groupId` from the database.
850-
* Deleting a group will only delete the assignment of items to it, not the items themselves!
851-
*/
852-
export class DeleteGroup extends requests.Request {
853-
/**
854-
* @param groupId - ID of the group to be deleted.
855-
*/
856-
constructor(
857-
groupId: string,
858-
);
859-
860-
groupId: string;
861-
protected __response_type: string;
862-
863-
bodyParameters(): {
864-
};
865-
866-
queryParameters(): {
867-
};
868-
}
869-
870-
/**
871-
* Gets the list of all the groups currently present in the database.
872-
*/
873-
export class ListGroups extends requests.Request {
874-
/**
875-
876-
*/
877-
constructor(
878-
);
879-
880-
protected __response_type: Group[];
881-
882-
bodyParameters(): {
883-
};
884-
885-
queryParameters(): {
886-
};
887-
}
888-
889-
/**
890-
* List all the items present in the given group.
891-
*/
892-
export class ListGroupItems extends requests.Request {
893-
/**
894-
* @param groupId - ID of the group whose items are to be listed.
895-
*/
896-
constructor(
897-
groupId: string,
898-
);
899-
900-
groupId: string;
901-
protected __response_type: GroupItem[];
902-
903-
bodyParameters(): {
904-
};
905-
906-
queryParameters(): {
907-
};
908-
}
909-
910-
/**
911-
* Inserts an existing item/group into a group of the given `groupId`.
912-
*/
913-
export class InsertToGroup extends requests.Request {
914-
/**
915-
* @param groupId - ID of the group to be inserted into.
916-
* @param itemType - `item` iff the regular item from the catalog is to be inserted, `group` iff group is inserted as the item.
917-
* @param itemId - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
918-
* @param optional - Optional parameters given as an object.
919-
*/
920-
constructor(
921-
groupId: string,
922-
itemType: string,
923-
itemId: string,
924-
optional?: {
925-
/** Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database. */
926-
cascadeCreate?: boolean;
927-
}
928-
);
929-
930-
groupId: string;
931-
itemType: string;
932-
itemId: string;
933-
cascadeCreate?: boolean;
934-
protected __response_type: string;
935-
936-
bodyParameters(): {
937-
itemType: string;
938-
itemId: string;
939-
cascadeCreate?: boolean;
940-
};
941-
942-
queryParameters(): {
943-
};
944-
}
945-
946-
/**
947-
* Removes an existing group item from the group.
948-
*/
949-
export class RemoveFromGroup extends requests.Request {
950-
/**
951-
* @param groupId - ID of the group from which a group item is to be removed.
952-
* @param itemType - Type of the item to be removed.
953-
* @param itemId - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
954-
*/
955-
constructor(
956-
groupId: string,
957-
itemType: string,
958-
itemId: string,
959-
);
960-
961-
groupId: string;
962-
itemType: string;
963-
itemId: string;
964-
protected __response_type: string;
965-
966-
bodyParameters(): {
967-
};
968-
969-
queryParameters(): {
970-
itemType: string;
971-
itemId: string;
972-
};
973-
}
974-
975817
/**
976818
* Adds a new user to the database.
977819
*/
@@ -1110,7 +952,7 @@ export module "recombee-api-client" {
1110952
}
1111953

1112954
/**
1113-
* Adding a user property is somehow equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
955+
* Adding a user property is somewhat equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
1114956
*/
1115957
export class AddUserProperty extends requests.Request {
1116958
/**
@@ -3209,4 +3051,4 @@ export module "recombee-api-client" {
32093051
};
32103052
}
32113053
}
3212-
}
3054+
}

lib/requests/add-group.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

lib/requests/delete-group.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

lib/requests/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ exports.ListSeries = require("./list-series").ListSeries;
2020
exports.ListSeriesItems = require("./list-series-items").ListSeriesItems;
2121
exports.InsertToSeries = require("./insert-to-series").InsertToSeries;
2222
exports.RemoveFromSeries = require("./remove-from-series").RemoveFromSeries;
23-
exports.AddGroup = require("./add-group").AddGroup;
24-
exports.DeleteGroup = require("./delete-group").DeleteGroup;
25-
exports.ListGroups = require("./list-groups").ListGroups;
26-
exports.ListGroupItems = require("./list-group-items").ListGroupItems;
27-
exports.InsertToGroup = require("./insert-to-group").InsertToGroup;
28-
exports.RemoveFromGroup = require("./remove-from-group").RemoveFromGroup;
2923
exports.AddUser = require("./add-user").AddUser;
3024
exports.DeleteUser = require("./delete-user").DeleteUser;
3125
exports.SetUserValues = require("./set-user-values").SetUserValues;

lib/requests/insert-to-group.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)