Class: CGraphQLClient
frontend.CGraphQLClient
CGraphQLClient - CromwellCMS GraphQL API Client
#
Table of contents#
Properties- AttributeFragment
- CouponFragment
- CustomEntityFragment
- OrderFragment
- PagedMetaFragment
- PluginFragment
- PostFragment
- ProductCategoryFragment
- ProductFragment
- ProductReviewFragment
- TagFragment
- ThemeFragment
- UserFragment
- createAttribute
- createCoupon
- createCustomEntity
- createOrder
- createPost
- createProduct
- createProductCategory
- createProductReview
- createTag
- createUser
- deleteAttribute
- deleteCoupon
- deleteCustomEntity
- deleteManyCoupons
- deleteManyCustomEntities
- deleteManyFilteredCoupons
- deleteManyFilteredCustomEntities
- deleteManyFilteredOrders
- deleteManyFilteredPosts
- deleteManyFilteredProductCategories
- deleteManyFilteredProductReviews
- deleteManyFilteredProducts
- deleteManyFilteredTags
- deleteManyFilteredUsers
- deleteManyOrders
- deleteManyPosts
- deleteManyProductCategories
- deleteManyProductReviews
- deleteManyProducts
- deleteManyTags
- deleteManyUsers
- deleteOrder
- deletePost
- deleteProduct
- deleteProductCategory
- deleteProductReview
- deleteTag
- deleteUser
- getAttributeById
- getCouponById
- getCouponBySlug
- getCoupons
- getCustomEntities
- getCustomEntityById
- getCustomEntitySlug
- getFilteredCoupons
- getFilteredCustomEntities
- getFilteredOrders
- getFilteredPosts
- getFilteredProductCategories
- getFilteredProductReviews
- getFilteredTags
- getFilteredUsers
- getOrderById
- getOrderBySlug
- getOrders
- getPostById
- getPostBySlug
- getPosts
- getProductById
- getProductBySlug
- getProductCategories
- getProductCategoryById
- getProductCategoryBySlug
- getProductReviewById
- getProductReviews
- getProducts
- getTagById
- getTagBySlug
- getTags
- getUserById
- getUserBySlug
- getUsers
- updateAttribute
- updateCoupon
- updateCustomEntity
- updateOrder
- updatePost
- updateProduct
- updateProductCategory
- updateProductReview
- updateTag
- updateUser
#
Methods- createEntity
- getAllEntities
- getAttributes
- getCouponsByCodes
- getEntityById
- getFilteredEntities
- getFilteredProducts
- getOrdersOfUser
- getProductsFromCategory
- getRootCategories
- getUserByEmail
- mutate
- onError
- onUnauthorized
- query
- removeOnError
- removeOnUnauthorized
- updateEntity
#
Properties#
AttributeFragment• AttributeFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:794
#
CouponFragment• CouponFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1154
#
CustomEntityFragment• CustomEntityFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1122
#
OrderFragment• OrderFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:975
#
PagedMetaFragment• PagedMetaFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:269
#
PluginFragment• PluginFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1075
#
PostFragment• PostFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:866
#
ProductCategoryFragment• ProductCategoryFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:730
#
ProductFragment• ProductFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:597
#
ProductReviewFragment• ProductReviewFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:836
#
TagFragment• TagFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1043
#
ThemeFragment• ThemeFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1099
#
UserFragment• UserFragment: DocumentNode
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:919
#
createAttribute• createAttribute: (data
: TAttributeInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TAttribute
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TAttribute
>
#
ParametersName | Type |
---|---|
data | TAttributeInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TAttribute
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:814
#
createCoupon• createCoupon: (data
: TCouponInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TCoupon
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TCoupon
>
#
ParametersName | Type |
---|---|
data | TCouponInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TCoupon
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1183
#
createCustomEntity• createCustomEntity: (data
: TCustomEntityInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TCustomEntity
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TCustomEntity
>
#
ParametersName | Type |
---|---|
data | TCustomEntityInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TCustomEntity
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1144
#
createOrder• createOrder: (data
: TOrderInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TOrder
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TOrder
>
#
ParametersName | Type |
---|---|
data | TOrderInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TOrder
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1003
#
createPost• createPost: (data
: TPostInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPost
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TPost
>
#
ParametersName | Type |
---|---|
data | TPostInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPost
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:904
#
createProduct• createProduct: (data
: TProductInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProduct
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TProduct
>
#
ParametersName | Type |
---|---|
data | TProductInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProduct
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:653
#
createProductCategory• createProductCategory: (data
: TProductCategoryInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProductCategory
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TProductCategory
>
#
ParametersName | Type |
---|---|
data | TProductCategoryInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProductCategory
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:760
#
createProductReview• createProductReview: (data
: TProductReviewInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProductReview
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TProductReview
>
#
ParametersName | Type |
---|---|
data | TProductReviewInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProductReview
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:855
#
createTag• createTag: (data
: TTagInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TTag
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TTag
>
#
ParametersName | Type |
---|---|
data | TTagInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TTag
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1067
#
createUser• createUser: (data
: TCreateUser
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TUser
>
#
Type declarationâ–¸ (data
, customFragment?
, customFragmentName?
): Promise
<TUser
>
#
ParametersName | Type |
---|---|
data | TCreateUser |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TUser
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:945
#
deleteAttribute• deleteAttribute: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:815
#
deleteCoupon• deleteCoupon: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1184
#
deleteCustomEntity• deleteCustomEntity: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1145
#
deleteManyCoupons• deleteManyCoupons: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1185
#
deleteManyCustomEntities• deleteManyCustomEntities: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1146
#
deleteManyFilteredCoupons• deleteManyFilteredCoupons: (input
: TDeleteManyInput
, filterParams?
: TBaseFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TBaseFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1186
#
deleteManyFilteredCustomEntities• deleteManyFilteredCustomEntities: (input
: TDeleteManyInput
, filterParams?
: TCustomEntityFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TCustomEntityFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1147
#
deleteManyFilteredOrders• deleteManyFilteredOrders: (input
: TDeleteManyInput
, filterParams?
: TOrderFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TOrderFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1006
#
deleteManyFilteredPosts• deleteManyFilteredPosts: (input
: TDeleteManyInput
, filterParams?
: TPostFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TPostFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:907
#
deleteManyFilteredProductCategories• deleteManyFilteredProductCategories: (input
: TDeleteManyInput
, filterParams?
: TProductCategoryFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TProductCategoryFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:763
#
deleteManyFilteredProductReviews• deleteManyFilteredProductReviews: (input
: TDeleteManyInput
, filterParams?
: TProductReviewFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TProductReviewFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:858
#
deleteManyFilteredProducts• deleteManyFilteredProducts: (input
: TDeleteManyInput
, filterParams?
: TProductFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TProductFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:656
#
deleteManyFilteredTags• deleteManyFilteredTags: (input
: TDeleteManyInput
, filterParams?
: TBaseFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TBaseFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1070
#
deleteManyFilteredUsers• deleteManyFilteredUsers: (input
: TDeleteManyInput
, filterParams?
: TUserFilter
) => Promise
<any
>
#
Type declarationâ–¸ (input
, filterParams?
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | TUserFilter |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:948
#
deleteManyOrders• deleteManyOrders: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1005
#
deleteManyPosts• deleteManyPosts: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:906
#
deleteManyProductCategories• deleteManyProductCategories: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:762
#
deleteManyProductReviews• deleteManyProductReviews: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:857
#
deleteManyProducts• deleteManyProducts: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:655
#
deleteManyTags• deleteManyTags: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1069
#
deleteManyUsers• deleteManyUsers: (input
: TDeleteManyInput
) => Promise
<any
>
#
Type declarationâ–¸ (input
): Promise
<any
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:947
#
deleteOrder• deleteOrder: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1004
#
deletePost• deletePost: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:905
#
deleteProduct• deleteProduct: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:654
#
deleteProductCategory• deleteProductCategory: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:761
#
deleteProductReview• deleteProductReview: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:856
#
deleteTag• deleteTag: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1068
#
deleteUser• deleteUser: (id
: number
) => Promise
<any
>
#
Type declarationâ–¸ (id
): Promise
<any
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<any
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:946
#
getAttributeById• getAttributeById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TAttribute
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TAttribute
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TAttribute
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:812
#
getCouponById• getCouponById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TCoupon
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TCoupon
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TCoupon
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1179
#
getCouponBySlug• getCouponBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TCoupon
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TCoupon
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TCoupon
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1180
#
getCoupons• getCoupons: (pagedParams?
: TPagedParams
<TCoupon
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TCoupon
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TCoupon
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TCoupon > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TCoupon
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1178
#
getCustomEntities• getCustomEntities: (pagedParams?
: TPagedParams
<TCustomEntity
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TCustomEntity
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TCustomEntity
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TCustomEntity > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TCustomEntity
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1139
#
getCustomEntityById• getCustomEntityById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TCustomEntity
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TCustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TCustomEntity
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1140
#
getCustomEntitySlug• getCustomEntitySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TCustomEntity
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TCustomEntity
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TCustomEntity
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1141
#
getFilteredCoupons• getFilteredCoupons: (options
: TGetFilteredOptions
<TCoupon
, TBaseFilter
>) => Promise
<TPagedList
<TCoupon
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TCoupon
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TCoupon , TBaseFilter > |
#
ReturnsPromise
<TPagedList
<TCoupon
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1181
#
getFilteredCustomEntities• getFilteredCustomEntities: (options
: TGetFilteredOptions
<TCustomEntity
, TCustomEntityFilter
>) => Promise
<TPagedList
<TCustomEntity
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TCustomEntity
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TCustomEntity , TCustomEntityFilter > |
#
ReturnsPromise
<TPagedList
<TCustomEntity
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1142
#
getFilteredOrders• getFilteredOrders: (options
: TGetFilteredOptions
<TOrder
, TOrderFilter
>) => Promise
<TPagedList
<TOrder
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TOrder
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TOrder , TOrderFilter > |
#
ReturnsPromise
<TPagedList
<TOrder
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1007
#
getFilteredPosts• getFilteredPosts: (options
: TGetFilteredOptions
<TPost
, TPostFilter
>) => Promise
<TPagedList
<TPost
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TPost
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TPost , TPostFilter > |
#
ReturnsPromise
<TPagedList
<TPost
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:908
#
getFilteredProductCategories• getFilteredProductCategories: (options
: TGetFilteredOptions
<TProductCategory
, TProductCategoryFilter
>) => Promise
<TPagedList
<TProductCategory
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TProductCategory
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TProductCategory , TProductCategoryFilter > |
#
ReturnsPromise
<TPagedList
<TProductCategory
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:764
#
getFilteredProductReviews• getFilteredProductReviews: (options
: TGetFilteredOptions
<TProductReview
, TProductReviewFilter
>) => Promise
<TPagedList
<TProductReview
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TProductReview
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TProductReview , TProductReviewFilter > |
#
ReturnsPromise
<TPagedList
<TProductReview
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:859
#
getFilteredTags• getFilteredTags: (options
: TGetFilteredOptions
<TTag
, TBaseFilter
>) => Promise
<TPagedList
<TTag
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TTag
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TTag , TBaseFilter > |
#
ReturnsPromise
<TPagedList
<TTag
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1065
#
getFilteredUsers• getFilteredUsers: (options
: TGetFilteredOptions
<TUser
, TUserFilter
>) => Promise
<TPagedList
<TUser
>>
#
Type declarationâ–¸ (options
): Promise
<TPagedList
<TUser
>>
#
ParametersName | Type |
---|---|
options | TGetFilteredOptions <TUser , TUserFilter > |
#
ReturnsPromise
<TPagedList
<TUser
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:949
#
getOrderById• getOrderById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TOrder
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TOrder
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TOrder
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1000
#
getOrderBySlug• getOrderBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TOrder
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TOrder
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TOrder
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1001
#
getOrders• getOrders: (pagedParams?
: TPagedParams
<TOrder
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TOrder
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TOrder
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TOrder > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TOrder
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:999
#
getPostById• getPostById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TPost
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TPost
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TPost
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:901
#
getPostBySlug• getPostBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TPost
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TPost
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TPost
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:902
#
getPosts• getPosts: (pagedParams?
: TPagedParams
<TPost
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TPost
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TPost
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TPost > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TPost
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:900
#
getProductById• getProductById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TProduct
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TProduct
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TProduct
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:650
#
getProductBySlug• getProductBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TProduct
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TProduct
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TProduct
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:651
#
getProductCategories• getProductCategories: (pagedParams?
: TPagedParams
<TProductCategory
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TProductCategory
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TProductCategory
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TProductCategory > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TProductCategory
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:756
#
getProductCategoryById• getProductCategoryById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TProductCategory
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TProductCategory
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TProductCategory
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:757
#
getProductCategoryBySlug• getProductCategoryBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TProductCategory
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TProductCategory
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TProductCategory
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:758
#
getProductReviewById• getProductReviewById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TProductReview
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TProductReview
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TProductReview
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:853
#
getProductReviews• getProductReviews: (pagedParams?
: TPagedParams
<TProductReview
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TProductReview
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TProductReview
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TProductReview > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TProductReview
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:852
#
getProducts• getProducts: (pagedParams?
: TPagedParams
<TProduct
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TProduct
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TProduct
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TProduct > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TProduct
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:649
#
getTagById• getTagById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TTag
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TTag
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TTag
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1063
#
getTagBySlug• getTagBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TTag
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TTag
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TTag
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1064
#
getTags• getTags: (pagedParams?
: TPagedParams
<TTag
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TTag
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TTag
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TTag > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TTag
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1062
#
getUserById• getUserById: (id
: number
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TUser
>
#
Type declarationâ–¸ (id
, customFragment?
, customFragmentName?
): Promise
<undefined
| TUser
>
#
ParametersName | Type |
---|---|
id | number |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:942
#
getUserBySlug• getUserBySlug: (slug
: string
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<undefined
| TUser
>
#
Type declarationâ–¸ (slug
, customFragment?
, customFragmentName?
): Promise
<undefined
| TUser
>
#
ParametersName | Type |
---|---|
slug | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:943
#
getUsers• getUsers: (pagedParams?
: TPagedParams
<TUser
>, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPagedList
<TUser
>>
#
Type declarationâ–¸ (pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TUser
>>
#
ParametersName | Type |
---|---|
pagedParams? | TPagedParams <TUser > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TUser
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:941
#
updateAttribute• updateAttribute: (id
: number
, data
: TAttributeInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TAttribute
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TAttribute
>
#
ParametersName | Type |
---|---|
id | number |
data | TAttributeInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TAttribute
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:813
#
updateCoupon• updateCoupon: (id
: number
, data
: TCouponInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TCoupon
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TCoupon
>
#
ParametersName | Type |
---|---|
id | number |
data | TCouponInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TCoupon
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1182
#
updateCustomEntity• updateCustomEntity: (id
: number
, data
: TCustomEntityInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TCustomEntity
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TCustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
data | TCustomEntityInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TCustomEntity
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1143
#
updateOrder• updateOrder: (id
: number
, data
: TOrderInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TOrder
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TOrder
>
#
ParametersName | Type |
---|---|
id | number |
data | TOrderInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TOrder
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1002
#
updatePost• updatePost: (id
: number
, data
: TPostInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TPost
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TPost
>
#
ParametersName | Type |
---|---|
id | number |
data | TPostInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPost
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:903
#
updateProduct• updateProduct: (id
: number
, data
: TProductInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProduct
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TProduct
>
#
ParametersName | Type |
---|---|
id | number |
data | TProductInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProduct
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:652
#
updateProductCategory• updateProductCategory: (id
: number
, data
: TProductCategoryInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProductCategory
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TProductCategory
>
#
ParametersName | Type |
---|---|
id | number |
data | TProductCategoryInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProductCategory
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:759
#
updateProductReview• updateProductReview: (id
: number
, data
: TProductReviewInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TProductReview
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TProductReview
>
#
ParametersName | Type |
---|---|
id | number |
data | TProductReviewInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TProductReview
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:854
#
updateTag• updateTag: (id
: number
, data
: TTagInput
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TTag
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TTag
>
#
ParametersName | Type |
---|---|
id | number |
data | TTagInput |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TTag
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1066
#
updateUser• updateUser: (id
: number
, data
: TUpdateUser
, customFragment?
: DocumentNode
, customFragmentName?
: string
) => Promise
<TUser
>
#
Type declarationâ–¸ (id
, data
, customFragment?
, customFragmentName?
): Promise
<TUser
>
#
ParametersName | Type |
---|---|
id | number |
data | TUpdateUser |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TUser
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:944
#
Methods#
createEntityâ–¸ createEntity<EntityType
, EntityInputType
>(entityName
, entityInputName
, fragment
, fragmentName
, data
): Promise
<undefined
| EntityType
>
Create a record by id of a generic entity
auth
admin
#
Type parametersName |
---|
EntityType |
EntityInputType |
#
ParametersName | Type |
---|---|
entityName | string |
entityInputName | string |
fragment | DocumentNode |
fragmentName | string |
data | EntityInputType |
#
ReturnsPromise
<undefined
| EntityType
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:563
#
getAllEntitiesâ–¸ getAllEntities<EntityType
>(entityName
, fragment
, fragmentName
): Promise
<EntityType
[]>
Get all records of a generic entity
auth
admin
#
Type parametersName |
---|
EntityType |
#
ParametersName | Type |
---|---|
entityName | string |
fragment | DocumentNode |
fragmentName | string |
#
ReturnsPromise
<EntityType
[]>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:500
#
getAttributesâ–¸ getAttributes(): Promise
<undefined
| TAttribute
[]>
#
ReturnsPromise
<undefined
| TAttribute
[]>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:817
#
getCouponsByCodesâ–¸ getCouponsByCodes(codes
, customFragment?
, customFragmentName?
): Promise
<undefined
| TCoupon
[]>
#
ParametersName | Type |
---|---|
codes | string [] |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TCoupon
[]>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1188
#
getEntityByIdâ–¸ getEntityById<EntityType
>(entityName
, fragment
, fragmentName
, entityId
): Promise
<undefined
| EntityType
>
Get a record by id of a generic entity
auth
admin
#
Type parametersName |
---|
EntityType |
#
ParametersName | Type |
---|---|
entityName | string |
fragment | DocumentNode |
fragmentName | string |
entityId | number |
#
ReturnsPromise
<undefined
| EntityType
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:518
#
getFilteredEntitiesâ–¸ getFilteredEntities<TEntity
, TFilter
>(entityName
, fragment
, fragmentName
, options
): Promise
<TPagedList
<TEntity
>>
Get filtered records of a generic entity
auth
admin
#
Type parametersName |
---|
TEntity |
TFilter |
#
ParametersName | Type |
---|---|
entityName | string |
fragment | DocumentNode |
fragmentName | string |
options | TGetFilteredOptions <TEntity , TFilter > |
#
ReturnsPromise
<TPagedList
<TEntity
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:585
#
getFilteredProductsâ–¸ getFilteredProducts(__namedParameters
): Promise
<TFilteredProductList
>
#
ParametersName | Type |
---|---|
__namedParameters | Object |
__namedParameters.customFragment? | DocumentNode |
__namedParameters.customFragmentName? | string |
__namedParameters.filterParams? | TProductFilter |
__namedParameters.pagedParams? | TPagedParams <TProduct > |
#
ReturnsPromise
<TFilteredProductList
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:687
#
getOrdersOfUserâ–¸ getOrdersOfUser(userId
, pagedParams
, customFragment?
, customFragmentName?
): Promise
<undefined
| TPagedList
<TOrder
>>
#
ParametersName | Type |
---|---|
userId | number |
pagedParams | TPagedParams <TOrder > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TPagedList
<TOrder
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:1010
#
getProductsFromCategoryâ–¸ getProductsFromCategory(categoryId
, pagedParams?
, customFragment?
, customFragmentName?
): Promise
<TPagedList
<TProduct
>>
#
ParametersName | Type |
---|---|
categoryId | number |
pagedParams? | TPagedParams <TProduct > |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<TPagedList
<TProduct
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:659
#
getRootCategoriesâ–¸ getRootCategories(customFragment?
, customFragmentName?
): Promise
<undefined
| TPagedList
<TProductCategory
>>
#
ParametersName | Type |
---|---|
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TPagedList
<TProductCategory
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:766
#
getUserByEmailâ–¸ getUserByEmail(email
, customFragment?
, customFragmentName?
): Promise
<undefined
| TUser
>
#
ParametersName | Type |
---|---|
email | string |
customFragment? | DocumentNode |
customFragmentName? | string |
#
ReturnsPromise
<undefined
| TUser
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:951
#
mutateâ–¸ mutate<T
>(options
, path
): Promise
<T
>
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
options | MutationOptions <Object , OperationVariables > |
path | string |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:184
â–¸ mutate<T
>(options
): Promise
<Promise
<FetchResult
<unknown
, Record
<string
, any
>, Record
<string
, any
>>>>
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
options | MutationOptions <Object , OperationVariables > |
#
ReturnsPromise
<Promise
<FetchResult
<unknown
, Record
<string
, any
>, Record
<string
, any
>>>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:185
#
onErrorâ–¸ onError(cb
, id?
): void
Add on error callback. Triggers if any of methods of this client get any type of error
#
ParametersName | Type |
---|---|
cb | (message : TGraphQLErrorInfo ) => any |
id? | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:257
#
onUnauthorizedâ–¸ onUnauthorized(callback
, id?
): void
Add on unauthorized error callback. Triggers if any of methods of this client get unauthorized error
#
ParametersName | Type |
---|---|
callback | () => any |
id? | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:241
#
queryâ–¸ query<T
>(options
, path
): Promise
<T
>
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
options | QueryOptions <OperationVariables , any > |
path | string |
#
ReturnsPromise
<T
>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:167
â–¸ query<T
>(options
): Promise
<ApolloQueryResult
<T
>>
#
Type parametersName | Type |
---|---|
T | any |
#
ParametersName | Type |
---|---|
options | QueryOptions <OperationVariables , any > |
#
ReturnsPromise
<ApolloQueryResult
<T
>>
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:168
#
removeOnErrorâ–¸ removeOnError(id
): void
Remove on error callback
#
ParametersName | Type |
---|---|
id | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:265
#
removeOnUnauthorizedâ–¸ removeOnUnauthorized(id
): void
Remove on unauthorized error callback
#
ParametersName | Type |
---|---|
id | string |
#
Returnsvoid
#
Defined insystem/core/frontend/src/api/CGraphQLClient.ts:249
#
updateEntityâ–¸ updateEntity<EntityType
, EntityInputType
>(entityName
, entityInputName
, fragment
, fragmentName
, entityId
, data
): Promise
<undefined
| EntityType
>
Update a record of a generic entity
auth
admin
#
Type parametersName |
---|
EntityType |
EntityInputType |
#
ParametersName | Type |
---|---|
entityName | string |
entityInputName | string |
fragment | DocumentNode |
fragmentName | string |
entityId | number |
data | EntityInputType |
#
ReturnsPromise
<undefined
| EntityType
>