Repository URL to install this package:
|
Version:
9.0.35-framework ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const apollo_server_1 = require("apollo-server");
exports.default = apollo_server_1.gql `
# === types ===
type PageableInfoType {
page: Int
size: Int
count: Int
totalCount: Int
}
# @todo this is an item
type ListItemLiteType {
name: String
currentlySelectedSkuId: String
listItemId: String
productId: String
quantity: Int
# @todo src/graphql-modules/catalog
description: String
regPriceValue: String
salePriceValue: String
type: String
images: [String]
promotionText: String
productOptionsList: [ProductOptionGroupLiteType]
# @note identifier is not used
identifier: String
brand: String
}
type ListItems {
name: String
identifier: String
}
type ListOfListsItemType {
listId: String
name: String
type: String
userId: String
itemType: String
accessType: String
listItems: [ListItems]
}
# === responses ===
type ListResponse {
responseMessage: String
responseCode: String
type: String
# @lite
listOfLists: [ListItemLiteType]
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
}
type AddItemResponse {
listItemId: String
responseMessage: String
responseCode: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
}
type DeleteItemResponse {
responseMessage: String
responseCode: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
}
type CreateListResponse {
listId: String
responseMessage: String
responseCode: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
}
type GetListResponse {
responseCode: String
responseMessage: String
listId: String
name: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
# need to cleanup
listItems: [ListItemLiteType]
pageableInfo: PageableInfoType
# ?
type: String
# why?
userId: String
itemType: String
accessType: String
}
type DeleteListResponse {
listId: String
responseMessage: String
responseCode: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
}
type GetAllListResponse {
responseMessage: String
responseCode: String
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
listOfLists: [ListOfListsItemType]
pageableInfo: PageableInfoType
}
# === inputs ===
input AddListItemType {
# @deprecated use currentlySelectedSkuId
key: String
currentlySelectedSkuId: String
name: String
quantity: Int
productId: String
}
input AddListItem {
# @deprecated use currentlySelectedSkuId
key: String
# @todo shouldn't this be in the listItems
currentlySelectedSkuId: String
listItems: [AddListItemType]
}
# @note only for types
input AddItemInput {
listId: String
listItems: [AddListItemType]
}
# @note only for types
input DeleteItemInput {
listItemId: String!
listId: String!
}
input CreateListItemType {
name: String
# PRIVATE | PUBLIC | PROTECTED
accessType: String
# SKU
itemType: String
}
input CreateListInput {
name: String
type: String
itemType: String
accessType: String
# listId: String
listItems: [AddListItemType]
}
input GetListPageInput {
page: Int
size: Int
}
input GetAllListInput {
page: Int
size: Int
name: String
}
input ListParamsInput {
accessType: String
name: String
}
type UpdateListResponse {
_DO_NOT_USE_EXCEPT_TO_DEBUG_: _DO_NOT_USE_EXCEPT_TO_DEBUG_TYPE_
responseMessage: String
responseCode: String
}
# === eh ===
# only for typings
input UpdateListInput {
listId: String!
listParams: ListParamsInput
}
# only for typings
input DeleteListInput {
listId: String
}
`;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGlzdC5ncmFwaHFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dyYXBocWwtbW9kdWxlcy9saXN0L3NjaGVtYS9MaXN0LmdyYXBocWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBbUM7QUFFbkMsa0JBQWUsbUJBQUcsQ0FBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBb0xqQixDQUFBIn0=