@connect-plus-online/ogabai-integrations 0.0.66 → 0.0.68
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/dist/index.cjs.js +118 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +77 -9
- package/dist/index.d.ts +77 -9
- package/dist/index.esm.js +115 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -437,12 +437,18 @@ type GraphQLResponse<T = any> = {
|
|
|
437
437
|
errors?: GraphQLError[];
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
|
|
440
|
+
interface SubscriptionPlanFeatureBehaviour {
|
|
441
|
+
id: string;
|
|
442
|
+
subscriptionPlanFeatureKey: SubscriptionPlanFeatureKey;
|
|
443
|
+
shortname: string;
|
|
444
|
+
title: string;
|
|
445
|
+
description: string;
|
|
446
|
+
createdAt: string;
|
|
447
|
+
}
|
|
441
448
|
type SubscriptionPlanFeatureStatus = "active" | "inactive";
|
|
442
|
-
type SubscriptionPlanFeatureTier = "basic" | "standard" | "pro";
|
|
443
449
|
type SubscriptionPlanFeatureKey = "product" | "stock" | "sale" | "store" | "expense" | "scanAdd" | "report" | "order" | "export" | "offline" | "tax" | "loyalty" | "staff" | "scanSell" | "stockAlert";
|
|
444
|
-
declare const SubscriptionPlanFeatureKeyLabels: Record<SubscriptionPlanFeatureKey, string
|
|
445
|
-
type SubscriptionPlanFeatureAccess = "
|
|
450
|
+
declare const SubscriptionPlanFeatureKeyLabels: Partial<Record<SubscriptionPlanFeatureKey, string>>;
|
|
451
|
+
type SubscriptionPlanFeatureAccess = "yes" | "no";
|
|
446
452
|
type SubscriptionPlanFeature = {
|
|
447
453
|
id: string;
|
|
448
454
|
title: string;
|
|
@@ -454,7 +460,7 @@ type SubscriptionPlanFeature = {
|
|
|
454
460
|
createdAt: string;
|
|
455
461
|
limitValue: number;
|
|
456
462
|
accessValue: SubscriptionPlanFeatureAccess;
|
|
457
|
-
|
|
463
|
+
subscriptionPlanFeatureBehaviourIds: string[];
|
|
458
464
|
};
|
|
459
465
|
interface SubscriptionPlan {
|
|
460
466
|
id: string;
|
|
@@ -472,9 +478,9 @@ interface SubscriptionPlan {
|
|
|
472
478
|
monthlyPlanPrice: number;
|
|
473
479
|
annuallyPlanPrice: number;
|
|
474
480
|
}
|
|
475
|
-
interface
|
|
481
|
+
interface SubscriptionPlanFeatureBehaviourValue {
|
|
476
482
|
featureKey: SubscriptionPlanFeatureKey;
|
|
477
|
-
|
|
483
|
+
behaviourIds: string[];
|
|
478
484
|
}
|
|
479
485
|
interface SubscriptionPlanFeatureLimitValue {
|
|
480
486
|
featureKey: SubscriptionPlanFeatureKey;
|
|
@@ -500,7 +506,7 @@ interface Subscription {
|
|
|
500
506
|
version: number;
|
|
501
507
|
createdAt: string;
|
|
502
508
|
updatedAt: string;
|
|
503
|
-
subscriptionTiers:
|
|
509
|
+
subscriptionTiers: SubscriptionPlanFeatureBehaviourValue[];
|
|
504
510
|
subscriptionLimits: SubscriptionPlanFeatureLimitValue[];
|
|
505
511
|
subscriptionAccesses: SubscriptionPlanFeatureAccessValue[];
|
|
506
512
|
}
|
|
@@ -909,6 +915,19 @@ type DeleteEntityRequest<K extends EntityKey> = {
|
|
|
909
915
|
[P in `${K}Id`]: string;
|
|
910
916
|
};
|
|
911
917
|
type DeleteEntityResponse<K extends EntityKey> = DeleteEntityRequest<K>;
|
|
918
|
+
/** ------------------- Boilerplate ------------------- */
|
|
919
|
+
type EntityCRUD<T, K extends string> = {
|
|
920
|
+
GetRequest: GetEntityRequest<T, K>;
|
|
921
|
+
CreateRequest: CreateEntityRequest<T, K>;
|
|
922
|
+
UpdateRequest: UpdateEntityRequest<T, K>;
|
|
923
|
+
DeleteRequest: DeleteEntityRequest<K>;
|
|
924
|
+
ListRequest: ListEntityRequest<T, K>;
|
|
925
|
+
GetResponse: EntityResponse<T, K>;
|
|
926
|
+
CreateResponse: EntityResponse<T, K>;
|
|
927
|
+
UpdateResponse: EntityResponse<T, K>;
|
|
928
|
+
DeleteResponse: DeleteEntityResponse<K>;
|
|
929
|
+
ListResponse: ListEntityResponse<T, K>;
|
|
930
|
+
};
|
|
912
931
|
|
|
913
932
|
declare const createUserAccountService: (client: GraphQLClient) => {
|
|
914
933
|
createUserAccount: (input: CreateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
@@ -1839,6 +1858,7 @@ declare const paystackInitializeSubscriptionResponse: (keyof PaystackInitializeS
|
|
|
1839
1858
|
type SubscriptionPlanFeatureFields = (keyof SubscriptionPlanFeature)[];
|
|
1840
1859
|
type SubscriptionPlanFields = (keyof SubscriptionPlan)[];
|
|
1841
1860
|
type SubscriptionFields = (keyof Subscription)[];
|
|
1861
|
+
type SubscriptionPlanFeatureBehaviourFields = (keyof SubscriptionPlanFeatureBehaviour)[];
|
|
1842
1862
|
|
|
1843
1863
|
interface GetSubscriptionPlanFeatureRequest {
|
|
1844
1864
|
subscriptionPlanFeature: Partial<SubscriptionPlanFeature>;
|
|
@@ -2000,6 +2020,30 @@ interface RemoveSubscriptionResponse {
|
|
|
2000
2020
|
}
|
|
2001
2021
|
declare const removeSubscriptionResponse: (keyof RemoveSubscriptionResponse)[];
|
|
2002
2022
|
|
|
2023
|
+
declare const ENTITY: "subscriptionPlanFeatureBehaviour";
|
|
2024
|
+
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY>;
|
|
2025
|
+
declare const subscriptionPlanFeatureBehaviourIntegration: {
|
|
2026
|
+
get: {
|
|
2027
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2028
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2029
|
+
};
|
|
2030
|
+
create: {
|
|
2031
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2032
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2033
|
+
};
|
|
2034
|
+
update: {
|
|
2035
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2036
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
declare const subscriptionPlanFeatureBehaviourListIntegration: {
|
|
2040
|
+
responseFields: readonly ["subscriptionPlanFeatureBehaviours", "total"];
|
|
2041
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviours", SubscriptionPlanFeatureBehaviourFields>;
|
|
2042
|
+
};
|
|
2043
|
+
declare const subscriptionPlanFeatureBehaviourDeleteIntegration: {
|
|
2044
|
+
responseFields: ["subscriptionPlanFeatureBehaviourId"];
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2003
2047
|
declare const createPaystackService: (client: GraphQLClient) => {
|
|
2004
2048
|
paystackInitializeSubscription(input: PaystackInitializeSubscriptionRequest, fetchFields?: {
|
|
2005
2049
|
root?: (keyof PaystackInitializeSubscriptionResponse)[];
|
|
@@ -2077,4 +2121,28 @@ declare const createSubscriptionService: (client: GraphQLClient) => {
|
|
|
2077
2121
|
}, option?: RequestOption): Promise<GetSubscriptionsResponse | null>;
|
|
2078
2122
|
};
|
|
2079
2123
|
|
|
2080
|
-
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionPlanFeatureRequest, type AddSubscriptionPlanFeatureResponse, type AddSubscriptionPlanFeatureResponseNestedFields, type AddSubscriptionPlanRequest, type AddSubscriptionPlanResponse, type AddSubscriptionPlanResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type GetSubscriptionPlanFeatureRequest, type GetSubscriptionPlanFeatureResponse, type GetSubscriptionPlanFeatureResponseNestedFields, type GetSubscriptionPlanFeaturesRequest, type GetSubscriptionPlanFeaturesResponse, type GetSubscriptionPlanFeaturesResponseNestedFields, type GetSubscriptionPlanRequest, type GetSubscriptionPlanResponse, type GetSubscriptionPlanResponseNestedFields, type GetSubscriptionPlansRequest, type GetSubscriptionPlansResponse, type GetSubscriptionPlansResponseNestedFields, type GetSubscriptionRequest, type GetSubscriptionResponse, type GetSubscriptionResponseNestedFields, type GetSubscriptionsRequest, type GetSubscriptionsResponse, type GetSubscriptionsResponseNestedFields, type GetTransactionRequest, type GetTransactionResponse, type GetTransactionResponseNestedFields, type GetTransactionsRequest, type GetTransactionsResponse, type GetTransactionsResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Manufacturer, type Middleware, type MonthlyUserStat, NetworkError, type Next, type Notification, type NotificationChannels, type OTP, type Order, type OrderFields, type OrderStatus, type PackageService, type PaymentType, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackInitializeSubscriptionRequest, type PaystackInitializeSubscriptionResponse, type PaystackService, type Platform, type Price, type Privilege, type PrivilegeAction, type Product, type ProductAttribute, type ProductCategory, type ProductCounts, type ProductLight, type ProductName, type ProductPackage, type ProductPackageService, type ProductService, type RemovePackageRequest, type RemovePackageResponse, type RemovePriceRequest, type RemovePriceResponse, type RemoveProductRequest, type RemoveProductResponse, type RemoveStockRequest, type RemoveStockResponse, type RemoveStoreCategoryProductRequest, type RemoveStoreCategoryProductResponse, type RemoveStoreCategoryRequest, type RemoveStoreCategoryResponse, type RemoveStoreRequest, type RemoveStoreResponse, type RemoveSubscriptionPlanFeatureRequest, type RemoveSubscriptionPlanFeatureResponse, type RemoveSubscriptionPlanRequest, type RemoveSubscriptionPlanResponse, type RemoveSubscriptionRequest, type RemoveSubscriptionResponse, type RequestContext, type RequestOption, type ResponseContext, type RestockCounts, type Sale, type SaleCounts, type SaleFields, type SaleService, type SaleStatus, SdkError, type SearchCategoriesAndTemplateRequest, type SearchCategoriesAndTemplateResponse, type SearchCategoriesAndTemplateResponseNestedFields, type SearchProductNamesRequest, type SearchProductNamesResponse, type SearchProductNamesResponseNestedFields, type ServiceUpdate, type Stock, type Store, type StoreCategory, type StoreCategoryProduct, type StoreCategoryProductService, type StoreCategoryService, type StoreService, type StoreSetting, type Subscription, type SubscriptionPlan, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeaturePolicy, type SubscriptionPlanFeatureStatus, type SubscriptionPlanFeatureTier, type SubscriptionPlanFeatureTierValue, type SubscriptionPlanService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type UpdateSubscriptionPlanFeatureRequest, type UpdateSubscriptionPlanFeatureResponse, type UpdateSubscriptionPlanFeatureResponseNestedFields, type UpdateSubscriptionPlanRequest, type UpdateSubscriptionPlanResponse, type UpdateSubscriptionPlanResponseNestedFields, type UpdateSubscriptionRequest, type UpdateSubscriptionResponse, type UpdateSubscriptionResponseNestedFields, type UpdateTransactionRequest, type UpdateTransactionResponse, type UpdateTransactionResponseNestedFields, type UploadImageResponse, type User, type UserAccount, type UserAccountService, type UserDevice, type UserNotification, type UserNotificationService, type UserNotificationSettings, type UserProductCounts, type UserRole, type UserRoleService, type UserSaleCounts, type UserService, type UserSetting, type UserStatus, type UserTxAmounts, type UserType, type UserTypeCounts, type VirtualAccount, type Wallet, type WalletCurrency, type WalletStatus, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionPlanFeatureResponseNestedFields, _getSubscriptionPlanResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionPlanFeatureResponse, addSubscriptionPlanFeatureResponseNestedFields, addSubscriptionPlanResponse, addSubscriptionPlanResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, getSubscriptionPlanFeatureResponse, getSubscriptionPlanFeatureResponseNestedFields, getSubscriptionPlanFeaturesResponse, getSubscriptionPlanFeaturesResponseNestedFields, getSubscriptionPlanResponse, getSubscriptionPlanResponseNestedFields, getSubscriptionPlansResponse, getSubscriptionPlansResponseNestedFields, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionPlanFeatureResponse, removeSubscriptionPlanResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionPlanFeatureResponse, updateSubscriptionPlanFeatureResponseNestedFields, updateSubscriptionPlanResponse, updateSubscriptionPlanResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
2124
|
+
declare const createSubscriptionPlanFeatureBehaviourService: (client: GraphQLClient) => {
|
|
2125
|
+
createSubscriptionPlanFeatureBehaviour: (input: CreateEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2126
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2127
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2128
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2129
|
+
updateSubscriptionPlanFeatureBehaviour: (input: UpdateEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2130
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2131
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2132
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2133
|
+
getSubscriptionPlanFeatureBehaviour: (input: GetEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2134
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2135
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2136
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2137
|
+
removeSubscriptionPlanFeatureBehaviour: (input: DeleteEntityRequest<"subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2138
|
+
root?: "subscriptionPlanFeatureBehaviourId"[] | undefined;
|
|
2139
|
+
nestedFields?: {} | undefined;
|
|
2140
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2141
|
+
getSubscriptionPlanFeatureBehaviours: (input: ListEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2142
|
+
root?: ("total" | "subscriptionPlanFeatureBehaviours")[] | undefined;
|
|
2143
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviours", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2144
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2145
|
+
};
|
|
2146
|
+
type SubscriptionPlanFeatureBehaviourService = ReturnType<typeof createSubscriptionPlanFeatureBehaviourService>;
|
|
2147
|
+
|
|
2148
|
+
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionPlanFeatureRequest, type AddSubscriptionPlanFeatureResponse, type AddSubscriptionPlanFeatureResponseNestedFields, type AddSubscriptionPlanRequest, type AddSubscriptionPlanResponse, type AddSubscriptionPlanResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type GetSubscriptionPlanFeatureRequest, type GetSubscriptionPlanFeatureResponse, type GetSubscriptionPlanFeatureResponseNestedFields, type GetSubscriptionPlanFeaturesRequest, type GetSubscriptionPlanFeaturesResponse, type GetSubscriptionPlanFeaturesResponseNestedFields, type GetSubscriptionPlanRequest, type GetSubscriptionPlanResponse, type GetSubscriptionPlanResponseNestedFields, type GetSubscriptionPlansRequest, type GetSubscriptionPlansResponse, type GetSubscriptionPlansResponseNestedFields, type GetSubscriptionRequest, type GetSubscriptionResponse, type GetSubscriptionResponseNestedFields, type GetSubscriptionsRequest, type GetSubscriptionsResponse, type GetSubscriptionsResponseNestedFields, type GetTransactionRequest, type GetTransactionResponse, type GetTransactionResponseNestedFields, type GetTransactionsRequest, type GetTransactionsResponse, type GetTransactionsResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Manufacturer, type Middleware, type MonthlyUserStat, NetworkError, type Next, type Notification, type NotificationChannels, type OTP, type Order, type OrderFields, type OrderStatus, type PackageService, type PaymentType, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackInitializeSubscriptionRequest, type PaystackInitializeSubscriptionResponse, type PaystackService, type Platform, type Price, type Privilege, type PrivilegeAction, type Product, type ProductAttribute, type ProductCategory, type ProductCounts, type ProductLight, type ProductName, type ProductPackage, type ProductPackageService, type ProductService, type RemovePackageRequest, type RemovePackageResponse, type RemovePriceRequest, type RemovePriceResponse, type RemoveProductRequest, type RemoveProductResponse, type RemoveStockRequest, type RemoveStockResponse, type RemoveStoreCategoryProductRequest, type RemoveStoreCategoryProductResponse, type RemoveStoreCategoryRequest, type RemoveStoreCategoryResponse, type RemoveStoreRequest, type RemoveStoreResponse, type RemoveSubscriptionPlanFeatureRequest, type RemoveSubscriptionPlanFeatureResponse, type RemoveSubscriptionPlanRequest, type RemoveSubscriptionPlanResponse, type RemoveSubscriptionRequest, type RemoveSubscriptionResponse, type RequestContext, type RequestOption, type ResponseContext, type RestockCounts, type Sale, type SaleCounts, type SaleFields, type SaleService, type SaleStatus, SdkError, type SearchCategoriesAndTemplateRequest, type SearchCategoriesAndTemplateResponse, type SearchCategoriesAndTemplateResponseNestedFields, type SearchProductNamesRequest, type SearchProductNamesResponse, type SearchProductNamesResponseNestedFields, type ServiceUpdate, type Stock, type Store, type StoreCategory, type StoreCategoryProduct, type StoreCategoryProductService, type StoreCategoryService, type StoreService, type StoreSetting, type Subscription, type SubscriptionPlan, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type UpdateSubscriptionPlanFeatureRequest, type UpdateSubscriptionPlanFeatureResponse, type UpdateSubscriptionPlanFeatureResponseNestedFields, type UpdateSubscriptionPlanRequest, type UpdateSubscriptionPlanResponse, type UpdateSubscriptionPlanResponseNestedFields, type UpdateSubscriptionRequest, type UpdateSubscriptionResponse, type UpdateSubscriptionResponseNestedFields, type UpdateTransactionRequest, type UpdateTransactionResponse, type UpdateTransactionResponseNestedFields, type UploadImageResponse, type User, type UserAccount, type UserAccountService, type UserDevice, type UserNotification, type UserNotificationService, type UserNotificationSettings, type UserProductCounts, type UserRole, type UserRoleService, type UserSaleCounts, type UserService, type UserSetting, type UserStatus, type UserTxAmounts, type UserType, type UserTypeCounts, type VirtualAccount, type Wallet, type WalletCurrency, type WalletStatus, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionPlanFeatureResponseNestedFields, _getSubscriptionPlanResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionPlanFeatureResponse, addSubscriptionPlanFeatureResponseNestedFields, addSubscriptionPlanResponse, addSubscriptionPlanResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, getSubscriptionPlanFeatureResponse, getSubscriptionPlanFeatureResponseNestedFields, getSubscriptionPlanFeaturesResponse, getSubscriptionPlanFeaturesResponseNestedFields, getSubscriptionPlanResponse, getSubscriptionPlanResponseNestedFields, getSubscriptionPlansResponse, getSubscriptionPlansResponseNestedFields, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionPlanFeatureResponse, removeSubscriptionPlanResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionPlanFeatureResponse, updateSubscriptionPlanFeatureResponseNestedFields, updateSubscriptionPlanResponse, updateSubscriptionPlanResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -437,12 +437,18 @@ type GraphQLResponse<T = any> = {
|
|
|
437
437
|
errors?: GraphQLError[];
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
|
|
440
|
+
interface SubscriptionPlanFeatureBehaviour {
|
|
441
|
+
id: string;
|
|
442
|
+
subscriptionPlanFeatureKey: SubscriptionPlanFeatureKey;
|
|
443
|
+
shortname: string;
|
|
444
|
+
title: string;
|
|
445
|
+
description: string;
|
|
446
|
+
createdAt: string;
|
|
447
|
+
}
|
|
441
448
|
type SubscriptionPlanFeatureStatus = "active" | "inactive";
|
|
442
|
-
type SubscriptionPlanFeatureTier = "basic" | "standard" | "pro";
|
|
443
449
|
type SubscriptionPlanFeatureKey = "product" | "stock" | "sale" | "store" | "expense" | "scanAdd" | "report" | "order" | "export" | "offline" | "tax" | "loyalty" | "staff" | "scanSell" | "stockAlert";
|
|
444
|
-
declare const SubscriptionPlanFeatureKeyLabels: Record<SubscriptionPlanFeatureKey, string
|
|
445
|
-
type SubscriptionPlanFeatureAccess = "
|
|
450
|
+
declare const SubscriptionPlanFeatureKeyLabels: Partial<Record<SubscriptionPlanFeatureKey, string>>;
|
|
451
|
+
type SubscriptionPlanFeatureAccess = "yes" | "no";
|
|
446
452
|
type SubscriptionPlanFeature = {
|
|
447
453
|
id: string;
|
|
448
454
|
title: string;
|
|
@@ -454,7 +460,7 @@ type SubscriptionPlanFeature = {
|
|
|
454
460
|
createdAt: string;
|
|
455
461
|
limitValue: number;
|
|
456
462
|
accessValue: SubscriptionPlanFeatureAccess;
|
|
457
|
-
|
|
463
|
+
subscriptionPlanFeatureBehaviourIds: string[];
|
|
458
464
|
};
|
|
459
465
|
interface SubscriptionPlan {
|
|
460
466
|
id: string;
|
|
@@ -472,9 +478,9 @@ interface SubscriptionPlan {
|
|
|
472
478
|
monthlyPlanPrice: number;
|
|
473
479
|
annuallyPlanPrice: number;
|
|
474
480
|
}
|
|
475
|
-
interface
|
|
481
|
+
interface SubscriptionPlanFeatureBehaviourValue {
|
|
476
482
|
featureKey: SubscriptionPlanFeatureKey;
|
|
477
|
-
|
|
483
|
+
behaviourIds: string[];
|
|
478
484
|
}
|
|
479
485
|
interface SubscriptionPlanFeatureLimitValue {
|
|
480
486
|
featureKey: SubscriptionPlanFeatureKey;
|
|
@@ -500,7 +506,7 @@ interface Subscription {
|
|
|
500
506
|
version: number;
|
|
501
507
|
createdAt: string;
|
|
502
508
|
updatedAt: string;
|
|
503
|
-
subscriptionTiers:
|
|
509
|
+
subscriptionTiers: SubscriptionPlanFeatureBehaviourValue[];
|
|
504
510
|
subscriptionLimits: SubscriptionPlanFeatureLimitValue[];
|
|
505
511
|
subscriptionAccesses: SubscriptionPlanFeatureAccessValue[];
|
|
506
512
|
}
|
|
@@ -909,6 +915,19 @@ type DeleteEntityRequest<K extends EntityKey> = {
|
|
|
909
915
|
[P in `${K}Id`]: string;
|
|
910
916
|
};
|
|
911
917
|
type DeleteEntityResponse<K extends EntityKey> = DeleteEntityRequest<K>;
|
|
918
|
+
/** ------------------- Boilerplate ------------------- */
|
|
919
|
+
type EntityCRUD<T, K extends string> = {
|
|
920
|
+
GetRequest: GetEntityRequest<T, K>;
|
|
921
|
+
CreateRequest: CreateEntityRequest<T, K>;
|
|
922
|
+
UpdateRequest: UpdateEntityRequest<T, K>;
|
|
923
|
+
DeleteRequest: DeleteEntityRequest<K>;
|
|
924
|
+
ListRequest: ListEntityRequest<T, K>;
|
|
925
|
+
GetResponse: EntityResponse<T, K>;
|
|
926
|
+
CreateResponse: EntityResponse<T, K>;
|
|
927
|
+
UpdateResponse: EntityResponse<T, K>;
|
|
928
|
+
DeleteResponse: DeleteEntityResponse<K>;
|
|
929
|
+
ListResponse: ListEntityResponse<T, K>;
|
|
930
|
+
};
|
|
912
931
|
|
|
913
932
|
declare const createUserAccountService: (client: GraphQLClient) => {
|
|
914
933
|
createUserAccount: (input: CreateEntityRequest<UserAccount, "userAccount">, fetchFields?: {
|
|
@@ -1839,6 +1858,7 @@ declare const paystackInitializeSubscriptionResponse: (keyof PaystackInitializeS
|
|
|
1839
1858
|
type SubscriptionPlanFeatureFields = (keyof SubscriptionPlanFeature)[];
|
|
1840
1859
|
type SubscriptionPlanFields = (keyof SubscriptionPlan)[];
|
|
1841
1860
|
type SubscriptionFields = (keyof Subscription)[];
|
|
1861
|
+
type SubscriptionPlanFeatureBehaviourFields = (keyof SubscriptionPlanFeatureBehaviour)[];
|
|
1842
1862
|
|
|
1843
1863
|
interface GetSubscriptionPlanFeatureRequest {
|
|
1844
1864
|
subscriptionPlanFeature: Partial<SubscriptionPlanFeature>;
|
|
@@ -2000,6 +2020,30 @@ interface RemoveSubscriptionResponse {
|
|
|
2000
2020
|
}
|
|
2001
2021
|
declare const removeSubscriptionResponse: (keyof RemoveSubscriptionResponse)[];
|
|
2002
2022
|
|
|
2023
|
+
declare const ENTITY: "subscriptionPlanFeatureBehaviour";
|
|
2024
|
+
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY>;
|
|
2025
|
+
declare const subscriptionPlanFeatureBehaviourIntegration: {
|
|
2026
|
+
get: {
|
|
2027
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2028
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2029
|
+
};
|
|
2030
|
+
create: {
|
|
2031
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2032
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2033
|
+
};
|
|
2034
|
+
update: {
|
|
2035
|
+
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
2036
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields>;
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
declare const subscriptionPlanFeatureBehaviourListIntegration: {
|
|
2040
|
+
responseFields: readonly ["subscriptionPlanFeatureBehaviours", "total"];
|
|
2041
|
+
nestedFields: Record<"subscriptionPlanFeatureBehaviours", SubscriptionPlanFeatureBehaviourFields>;
|
|
2042
|
+
};
|
|
2043
|
+
declare const subscriptionPlanFeatureBehaviourDeleteIntegration: {
|
|
2044
|
+
responseFields: ["subscriptionPlanFeatureBehaviourId"];
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2003
2047
|
declare const createPaystackService: (client: GraphQLClient) => {
|
|
2004
2048
|
paystackInitializeSubscription(input: PaystackInitializeSubscriptionRequest, fetchFields?: {
|
|
2005
2049
|
root?: (keyof PaystackInitializeSubscriptionResponse)[];
|
|
@@ -2077,4 +2121,28 @@ declare const createSubscriptionService: (client: GraphQLClient) => {
|
|
|
2077
2121
|
}, option?: RequestOption): Promise<GetSubscriptionsResponse | null>;
|
|
2078
2122
|
};
|
|
2079
2123
|
|
|
2080
|
-
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionPlanFeatureRequest, type AddSubscriptionPlanFeatureResponse, type AddSubscriptionPlanFeatureResponseNestedFields, type AddSubscriptionPlanRequest, type AddSubscriptionPlanResponse, type AddSubscriptionPlanResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type GetSubscriptionPlanFeatureRequest, type GetSubscriptionPlanFeatureResponse, type GetSubscriptionPlanFeatureResponseNestedFields, type GetSubscriptionPlanFeaturesRequest, type GetSubscriptionPlanFeaturesResponse, type GetSubscriptionPlanFeaturesResponseNestedFields, type GetSubscriptionPlanRequest, type GetSubscriptionPlanResponse, type GetSubscriptionPlanResponseNestedFields, type GetSubscriptionPlansRequest, type GetSubscriptionPlansResponse, type GetSubscriptionPlansResponseNestedFields, type GetSubscriptionRequest, type GetSubscriptionResponse, type GetSubscriptionResponseNestedFields, type GetSubscriptionsRequest, type GetSubscriptionsResponse, type GetSubscriptionsResponseNestedFields, type GetTransactionRequest, type GetTransactionResponse, type GetTransactionResponseNestedFields, type GetTransactionsRequest, type GetTransactionsResponse, type GetTransactionsResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Manufacturer, type Middleware, type MonthlyUserStat, NetworkError, type Next, type Notification, type NotificationChannels, type OTP, type Order, type OrderFields, type OrderStatus, type PackageService, type PaymentType, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackInitializeSubscriptionRequest, type PaystackInitializeSubscriptionResponse, type PaystackService, type Platform, type Price, type Privilege, type PrivilegeAction, type Product, type ProductAttribute, type ProductCategory, type ProductCounts, type ProductLight, type ProductName, type ProductPackage, type ProductPackageService, type ProductService, type RemovePackageRequest, type RemovePackageResponse, type RemovePriceRequest, type RemovePriceResponse, type RemoveProductRequest, type RemoveProductResponse, type RemoveStockRequest, type RemoveStockResponse, type RemoveStoreCategoryProductRequest, type RemoveStoreCategoryProductResponse, type RemoveStoreCategoryRequest, type RemoveStoreCategoryResponse, type RemoveStoreRequest, type RemoveStoreResponse, type RemoveSubscriptionPlanFeatureRequest, type RemoveSubscriptionPlanFeatureResponse, type RemoveSubscriptionPlanRequest, type RemoveSubscriptionPlanResponse, type RemoveSubscriptionRequest, type RemoveSubscriptionResponse, type RequestContext, type RequestOption, type ResponseContext, type RestockCounts, type Sale, type SaleCounts, type SaleFields, type SaleService, type SaleStatus, SdkError, type SearchCategoriesAndTemplateRequest, type SearchCategoriesAndTemplateResponse, type SearchCategoriesAndTemplateResponseNestedFields, type SearchProductNamesRequest, type SearchProductNamesResponse, type SearchProductNamesResponseNestedFields, type ServiceUpdate, type Stock, type Store, type StoreCategory, type StoreCategoryProduct, type StoreCategoryProductService, type StoreCategoryService, type StoreService, type StoreSetting, type Subscription, type SubscriptionPlan, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeaturePolicy, type SubscriptionPlanFeatureStatus, type SubscriptionPlanFeatureTier, type SubscriptionPlanFeatureTierValue, type SubscriptionPlanService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type UpdateSubscriptionPlanFeatureRequest, type UpdateSubscriptionPlanFeatureResponse, type UpdateSubscriptionPlanFeatureResponseNestedFields, type UpdateSubscriptionPlanRequest, type UpdateSubscriptionPlanResponse, type UpdateSubscriptionPlanResponseNestedFields, type UpdateSubscriptionRequest, type UpdateSubscriptionResponse, type UpdateSubscriptionResponseNestedFields, type UpdateTransactionRequest, type UpdateTransactionResponse, type UpdateTransactionResponseNestedFields, type UploadImageResponse, type User, type UserAccount, type UserAccountService, type UserDevice, type UserNotification, type UserNotificationService, type UserNotificationSettings, type UserProductCounts, type UserRole, type UserRoleService, type UserSaleCounts, type UserService, type UserSetting, type UserStatus, type UserTxAmounts, type UserType, type UserTypeCounts, type VirtualAccount, type Wallet, type WalletCurrency, type WalletStatus, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionPlanFeatureResponseNestedFields, _getSubscriptionPlanResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionPlanFeatureResponse, addSubscriptionPlanFeatureResponseNestedFields, addSubscriptionPlanResponse, addSubscriptionPlanResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, getSubscriptionPlanFeatureResponse, getSubscriptionPlanFeatureResponseNestedFields, getSubscriptionPlanFeaturesResponse, getSubscriptionPlanFeaturesResponseNestedFields, getSubscriptionPlanResponse, getSubscriptionPlanResponseNestedFields, getSubscriptionPlansResponse, getSubscriptionPlansResponseNestedFields, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionPlanFeatureResponse, removeSubscriptionPlanResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionPlanFeatureResponse, updateSubscriptionPlanFeatureResponseNestedFields, updateSubscriptionPlanResponse, updateSubscriptionPlanResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
2124
|
+
declare const createSubscriptionPlanFeatureBehaviourService: (client: GraphQLClient) => {
|
|
2125
|
+
createSubscriptionPlanFeatureBehaviour: (input: CreateEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2126
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2127
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2128
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2129
|
+
updateSubscriptionPlanFeatureBehaviour: (input: UpdateEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2130
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2131
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2132
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2133
|
+
getSubscriptionPlanFeatureBehaviour: (input: GetEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2134
|
+
root?: "subscriptionPlanFeatureBehaviour"[] | undefined;
|
|
2135
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviour", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2136
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2137
|
+
removeSubscriptionPlanFeatureBehaviour: (input: DeleteEntityRequest<"subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2138
|
+
root?: "subscriptionPlanFeatureBehaviourId"[] | undefined;
|
|
2139
|
+
nestedFields?: {} | undefined;
|
|
2140
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2141
|
+
getSubscriptionPlanFeatureBehaviours: (input: ListEntityRequest<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour">, fetchFields?: {
|
|
2142
|
+
root?: ("total" | "subscriptionPlanFeatureBehaviours")[] | undefined;
|
|
2143
|
+
nestedFields?: Record<"subscriptionPlanFeatureBehaviours", SubscriptionPlanFeatureBehaviourFields> | undefined;
|
|
2144
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<SubscriptionPlanFeatureBehaviour, "subscriptionPlanFeatureBehaviour"> | undefined>;
|
|
2145
|
+
};
|
|
2146
|
+
type SubscriptionPlanFeatureBehaviourService = ReturnType<typeof createSubscriptionPlanFeatureBehaviourService>;
|
|
2147
|
+
|
|
2148
|
+
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionPlanFeatureRequest, type AddSubscriptionPlanFeatureResponse, type AddSubscriptionPlanFeatureResponseNestedFields, type AddSubscriptionPlanRequest, type AddSubscriptionPlanResponse, type AddSubscriptionPlanResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type GetSubscriptionPlanFeatureRequest, type GetSubscriptionPlanFeatureResponse, type GetSubscriptionPlanFeatureResponseNestedFields, type GetSubscriptionPlanFeaturesRequest, type GetSubscriptionPlanFeaturesResponse, type GetSubscriptionPlanFeaturesResponseNestedFields, type GetSubscriptionPlanRequest, type GetSubscriptionPlanResponse, type GetSubscriptionPlanResponseNestedFields, type GetSubscriptionPlansRequest, type GetSubscriptionPlansResponse, type GetSubscriptionPlansResponseNestedFields, type GetSubscriptionRequest, type GetSubscriptionResponse, type GetSubscriptionResponseNestedFields, type GetSubscriptionsRequest, type GetSubscriptionsResponse, type GetSubscriptionsResponseNestedFields, type GetTransactionRequest, type GetTransactionResponse, type GetTransactionResponseNestedFields, type GetTransactionsRequest, type GetTransactionsResponse, type GetTransactionsResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Manufacturer, type Middleware, type MonthlyUserStat, NetworkError, type Next, type Notification, type NotificationChannels, type OTP, type Order, type OrderFields, type OrderStatus, type PackageService, type PaymentType, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackInitializeSubscriptionRequest, type PaystackInitializeSubscriptionResponse, type PaystackService, type Platform, type Price, type Privilege, type PrivilegeAction, type Product, type ProductAttribute, type ProductCategory, type ProductCounts, type ProductLight, type ProductName, type ProductPackage, type ProductPackageService, type ProductService, type RemovePackageRequest, type RemovePackageResponse, type RemovePriceRequest, type RemovePriceResponse, type RemoveProductRequest, type RemoveProductResponse, type RemoveStockRequest, type RemoveStockResponse, type RemoveStoreCategoryProductRequest, type RemoveStoreCategoryProductResponse, type RemoveStoreCategoryRequest, type RemoveStoreCategoryResponse, type RemoveStoreRequest, type RemoveStoreResponse, type RemoveSubscriptionPlanFeatureRequest, type RemoveSubscriptionPlanFeatureResponse, type RemoveSubscriptionPlanRequest, type RemoveSubscriptionPlanResponse, type RemoveSubscriptionRequest, type RemoveSubscriptionResponse, type RequestContext, type RequestOption, type ResponseContext, type RestockCounts, type Sale, type SaleCounts, type SaleFields, type SaleService, type SaleStatus, SdkError, type SearchCategoriesAndTemplateRequest, type SearchCategoriesAndTemplateResponse, type SearchCategoriesAndTemplateResponseNestedFields, type SearchProductNamesRequest, type SearchProductNamesResponse, type SearchProductNamesResponseNestedFields, type ServiceUpdate, type Stock, type Store, type StoreCategory, type StoreCategoryProduct, type StoreCategoryProductService, type StoreCategoryService, type StoreService, type StoreSetting, type Subscription, type SubscriptionPlan, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type UpdateSubscriptionPlanFeatureRequest, type UpdateSubscriptionPlanFeatureResponse, type UpdateSubscriptionPlanFeatureResponseNestedFields, type UpdateSubscriptionPlanRequest, type UpdateSubscriptionPlanResponse, type UpdateSubscriptionPlanResponseNestedFields, type UpdateSubscriptionRequest, type UpdateSubscriptionResponse, type UpdateSubscriptionResponseNestedFields, type UpdateTransactionRequest, type UpdateTransactionResponse, type UpdateTransactionResponseNestedFields, type UploadImageResponse, type User, type UserAccount, type UserAccountService, type UserDevice, type UserNotification, type UserNotificationService, type UserNotificationSettings, type UserProductCounts, type UserRole, type UserRoleService, type UserSaleCounts, type UserService, type UserSetting, type UserStatus, type UserTxAmounts, type UserType, type UserTypeCounts, type VirtualAccount, type Wallet, type WalletCurrency, type WalletStatus, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionPlanFeatureResponseNestedFields, _getSubscriptionPlanResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionPlanFeatureResponse, addSubscriptionPlanFeatureResponseNestedFields, addSubscriptionPlanResponse, addSubscriptionPlanResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, getSubscriptionPlanFeatureResponse, getSubscriptionPlanFeatureResponseNestedFields, getSubscriptionPlanFeaturesResponse, getSubscriptionPlanFeaturesResponseNestedFields, getSubscriptionPlanResponse, getSubscriptionPlanResponseNestedFields, getSubscriptionPlansResponse, getSubscriptionPlansResponseNestedFields, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionPlanFeatureResponse, removeSubscriptionPlanResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionPlanFeatureResponse, updateSubscriptionPlanFeatureResponseNestedFields, updateSubscriptionPlanResponse, updateSubscriptionPlanResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
package/dist/index.esm.js
CHANGED
|
@@ -4,17 +4,17 @@ var SubscriptionPlanFeatureKeyLabels = {
|
|
|
4
4
|
stock: "Stock",
|
|
5
5
|
sale: "Sale",
|
|
6
6
|
store: "Store",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
report: "Report",
|
|
10
|
-
order: "Order",
|
|
11
|
-
export: "Export",
|
|
12
|
-
offline: "Offline Mode",
|
|
13
|
-
tax: "Tax Management",
|
|
14
|
-
loyalty: "Loyalty Program",
|
|
15
|
-
staff: "Staff Management",
|
|
16
|
-
scanSell: "Scan & Sell",
|
|
17
|
-
stockAlert: "Stock Alert"
|
|
7
|
+
scanAdd: "Scan & Add"
|
|
8
|
+
// expense: "Expense",
|
|
9
|
+
// report: "Report",
|
|
10
|
+
// order: "Order",
|
|
11
|
+
// export: "Export",
|
|
12
|
+
// offline: "Offline Mode",
|
|
13
|
+
// tax: "Tax Management",
|
|
14
|
+
// loyalty: "Loyalty Program",
|
|
15
|
+
// staff: "Staff Management",
|
|
16
|
+
// scanSell: "Scan & Sell",
|
|
17
|
+
// stockAlert: "Stock Alert"
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
// src/auth.ts
|
|
@@ -2773,6 +2773,14 @@ var createPaystackService = (client) => ({
|
|
|
2773
2773
|
});
|
|
2774
2774
|
|
|
2775
2775
|
// src/services/subscription/subscription.entity.ts
|
|
2776
|
+
var subscriptionPlanFeatureBehaviourQuery = [
|
|
2777
|
+
"id",
|
|
2778
|
+
"createdAt",
|
|
2779
|
+
"description",
|
|
2780
|
+
"shortname",
|
|
2781
|
+
"subscriptionPlanFeatureKey",
|
|
2782
|
+
"title"
|
|
2783
|
+
];
|
|
2776
2784
|
var subscriptionQuery = [
|
|
2777
2785
|
"cancelAtPeriodEnd",
|
|
2778
2786
|
"canceledAt",
|
|
@@ -2889,6 +2897,18 @@ var removeSubscriptionResponse = [
|
|
|
2889
2897
|
"subscriptionId"
|
|
2890
2898
|
];
|
|
2891
2899
|
|
|
2900
|
+
// src/services/subscription/types/subscription-plan-feature-behaviour.type.ts
|
|
2901
|
+
var ENTITY4 = "subscriptionPlanFeatureBehaviour";
|
|
2902
|
+
var subscriptionPlanFeatureBehaviourIntegration = createStandardEntityIntegration({
|
|
2903
|
+
key: ENTITY4,
|
|
2904
|
+
fields: subscriptionPlanFeatureBehaviourQuery
|
|
2905
|
+
});
|
|
2906
|
+
var subscriptionPlanFeatureBehaviourListIntegration = createListIntegration({
|
|
2907
|
+
key: "subscriptionPlanFeatureBehaviours",
|
|
2908
|
+
fields: subscriptionPlanFeatureBehaviourQuery
|
|
2909
|
+
});
|
|
2910
|
+
var subscriptionPlanFeatureBehaviourDeleteIntegration = createDeleteIntegration(ENTITY4);
|
|
2911
|
+
|
|
2892
2912
|
// src/services/subscription/schemas/subscription-plan-feature.schema.ts
|
|
2893
2913
|
var subscriptionPlanFeatureSchema = {
|
|
2894
2914
|
getSubscriptionPlanFeature: (query) => `
|
|
@@ -3225,6 +3245,89 @@ var createSubscriptionService = (client) => ({
|
|
|
3225
3245
|
}
|
|
3226
3246
|
});
|
|
3227
3247
|
|
|
3228
|
-
|
|
3248
|
+
// src/services/subscription/schemas/subscription-plan-feature-behaviour.ts
|
|
3249
|
+
var subscriptionPlanFeatureBehaviourSchema = {
|
|
3250
|
+
get: {
|
|
3251
|
+
operation: "query",
|
|
3252
|
+
name: "getSubscriptionPlanFeatureBehaviour",
|
|
3253
|
+
variables: "($subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3254
|
+
field: "(subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3255
|
+
},
|
|
3256
|
+
list: {
|
|
3257
|
+
operation: "query",
|
|
3258
|
+
name: "getSubscriptionPlanFeatureBehaviours",
|
|
3259
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput, $subscriptionPlanFeatureBehaviourIds: [String])",
|
|
3260
|
+
field: "(limit: $limit, skip: $skip, search: $search, subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour, subscriptionPlanFeatureBehaviourIds: $subscriptionPlanFeatureBehaviourIds)"
|
|
3261
|
+
},
|
|
3262
|
+
create: {
|
|
3263
|
+
operation: "mutation",
|
|
3264
|
+
name: "createSubscriptionPlanFeatureBehaviour",
|
|
3265
|
+
variables: "($subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3266
|
+
field: "(subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3267
|
+
},
|
|
3268
|
+
update: {
|
|
3269
|
+
operation: "mutation",
|
|
3270
|
+
name: "updateSubscriptionPlanFeatureBehaviour",
|
|
3271
|
+
variables: "($subscriptionPlanFeatureBehaviourId: String!, $subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3272
|
+
field: "(subscriptionPlanFeatureBehaviourId: $subscriptionPlanFeatureBehaviourId, subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3273
|
+
},
|
|
3274
|
+
delete: {
|
|
3275
|
+
operation: "mutation",
|
|
3276
|
+
name: "removeSubscriptionPlanFeatureBehaviour",
|
|
3277
|
+
variables: "($subscriptionPlanFeatureBehaviourId: String!)",
|
|
3278
|
+
field: "(subscriptionPlanFeatureBehaviourId: $subscriptionPlanFeatureBehaviourId)"
|
|
3279
|
+
}
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
// src/services/subscription/subscription-plan-feature-behaviour.service.ts
|
|
3283
|
+
var createSubscriptionPlanFeatureBehaviourService = (client) => ({
|
|
3284
|
+
createSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3285
|
+
client,
|
|
3286
|
+
"createSubscriptionPlanFeatureBehaviour",
|
|
3287
|
+
{
|
|
3288
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.create),
|
|
3289
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.create.responseFields,
|
|
3290
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.create.nestedFields
|
|
3291
|
+
}
|
|
3292
|
+
),
|
|
3293
|
+
updateSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3294
|
+
client,
|
|
3295
|
+
"updateSubscriptionPlanFeatureBehaviour",
|
|
3296
|
+
{
|
|
3297
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.update),
|
|
3298
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.update.responseFields,
|
|
3299
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.update.nestedFields
|
|
3300
|
+
}
|
|
3301
|
+
),
|
|
3302
|
+
getSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3303
|
+
client,
|
|
3304
|
+
"getSubscriptionPlanFeatureBehaviour",
|
|
3305
|
+
{
|
|
3306
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.get),
|
|
3307
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.get.responseFields,
|
|
3308
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.get.nestedFields
|
|
3309
|
+
}
|
|
3310
|
+
),
|
|
3311
|
+
removeSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3312
|
+
client,
|
|
3313
|
+
"removeSubscriptionPlanFeatureBehaviour",
|
|
3314
|
+
{
|
|
3315
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.delete),
|
|
3316
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourDeleteIntegration.responseFields,
|
|
3317
|
+
defaultNestedFields: {}
|
|
3318
|
+
}
|
|
3319
|
+
),
|
|
3320
|
+
getSubscriptionPlanFeatureBehaviours: createOperationExecutor(
|
|
3321
|
+
client,
|
|
3322
|
+
"getSubscriptionPlanFeatureBehaviours",
|
|
3323
|
+
{
|
|
3324
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.list),
|
|
3325
|
+
defaultRootFields: [...subscriptionPlanFeatureBehaviourListIntegration.responseFields],
|
|
3326
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourListIntegration.nestedFields
|
|
3327
|
+
}
|
|
3328
|
+
)
|
|
3329
|
+
});
|
|
3330
|
+
|
|
3331
|
+
export { AuthenticationError, GraphQLClient, NetworkError, SdkError, SubscriptionPlanFeatureKeyLabels, UpdateSaleResponse, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionPlanFeatureResponseNestedFields, _getSubscriptionPlanResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionPlanFeatureResponse, addSubscriptionPlanFeatureResponseNestedFields, addSubscriptionPlanResponse, addSubscriptionPlanResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, getSubscriptionPlanFeatureResponse, getSubscriptionPlanFeatureResponseNestedFields, getSubscriptionPlanFeaturesResponse, getSubscriptionPlanFeaturesResponseNestedFields, getSubscriptionPlanResponse, getSubscriptionPlanResponseNestedFields, getSubscriptionPlansResponse, getSubscriptionPlansResponseNestedFields, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionPlanFeatureResponse, removeSubscriptionPlanResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionPlanFeatureResponse, updateSubscriptionPlanFeatureResponseNestedFields, updateSubscriptionPlanResponse, updateSubscriptionPlanResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
3229
3332
|
//# sourceMappingURL=index.esm.js.map
|
|
3230
3333
|
//# sourceMappingURL=index.esm.js.map
|