@connect-plus-online/ogabai-integrations 0.0.99 → 0.0.100
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 +112 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.esm.js +112 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -140,6 +140,12 @@ interface UserProductCounts {
|
|
|
140
140
|
totalProductToday: number;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
interface FeatureUserWhitelist {
|
|
144
|
+
id: string;
|
|
145
|
+
userId: string;
|
|
146
|
+
appFeatures: string[];
|
|
147
|
+
createdAt: string;
|
|
148
|
+
}
|
|
143
149
|
interface Customer {
|
|
144
150
|
id: string;
|
|
145
151
|
name: string;
|
|
@@ -658,6 +664,7 @@ type UserAccountFields = (keyof UserAccount)[];
|
|
|
658
664
|
type PrivilegeFields = (keyof Privilege)[];
|
|
659
665
|
type CustomerFields = (keyof Customer)[];
|
|
660
666
|
type CustomerStoreBalanceFields = (keyof CustomerStoreBalance)[];
|
|
667
|
+
type FeatureUserWhitelistFields = (keyof FeatureUserWhitelist)[];
|
|
661
668
|
|
|
662
669
|
type CustomersProductCountFields = (keyof CustomersProductCount)[];
|
|
663
670
|
type StoreCategoryProductFields = (keyof StoreCategoryProduct)[];
|
|
@@ -749,6 +756,7 @@ interface MeResponse {
|
|
|
749
756
|
userSetting?: UserSetting;
|
|
750
757
|
userAccounts?: UserAccount[];
|
|
751
758
|
subscription?: Subscription;
|
|
759
|
+
newFeaturesAllowed?: string[];
|
|
752
760
|
}
|
|
753
761
|
interface MeResponseNestedFields extends GetUserResponseNestedFields {
|
|
754
762
|
user: UserFields;
|
|
@@ -1133,6 +1141,30 @@ declare const createCustomerService: (client: GraphQLClient) => {
|
|
|
1133
1141
|
};
|
|
1134
1142
|
type CustomerService = ReturnType<typeof createCustomerService>;
|
|
1135
1143
|
|
|
1144
|
+
declare const createFeatureUserWhitelistService: (client: GraphQLClient) => {
|
|
1145
|
+
createFeatureUserWhitelist: (input: CreateEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1146
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1147
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1148
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1149
|
+
updateFeatureUserWhitelist: (input: UpdateEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1150
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1151
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1152
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1153
|
+
getFeatureUserWhitelist: (input: GetEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1154
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1155
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1156
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1157
|
+
deleteFeatureUserWhitelist: (input: DeleteEntityRequest<"featureUserWhitelist">, fetchFields?: {
|
|
1158
|
+
root?: "featureUserWhitelistId"[] | undefined;
|
|
1159
|
+
nestedFields?: {} | undefined;
|
|
1160
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"featureUserWhitelist"> | undefined>;
|
|
1161
|
+
listFeatureUserWhitelists: (input: ListEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1162
|
+
root?: ("total" | "featureUserWhitelists")[] | undefined;
|
|
1163
|
+
nestedFields?: Record<"featureUserWhitelists", FeatureUserWhitelistFields> | undefined;
|
|
1164
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1165
|
+
};
|
|
1166
|
+
type FeatureUserWhitelistService = ReturnType<typeof createFeatureUserWhitelistService>;
|
|
1167
|
+
|
|
1136
1168
|
interface GetCustomerProductCountsByIdsRequest {
|
|
1137
1169
|
userIds: string[];
|
|
1138
1170
|
}
|
|
@@ -1956,7 +1988,7 @@ declare const createTransactionService: (client: GraphQLClient) => {
|
|
|
1956
1988
|
root?: (keyof AddTransactionResponse)[];
|
|
1957
1989
|
nestedFields?: AddTransactionResponseNestedFields;
|
|
1958
1990
|
}, option?: RequestOption): Promise<AddTransactionResponse | null>;
|
|
1959
|
-
addCustomerDeposit(input: Pick<Transaction, "customerId" | "amountPaid">, fetchFields?: {
|
|
1991
|
+
addCustomerDeposit(input: Pick<Transaction, "customerId" | "amountPaid" | "createdById">, fetchFields?: {
|
|
1960
1992
|
root?: (keyof AddTransactionResponse)[];
|
|
1961
1993
|
nestedFields?: AddTransactionResponseNestedFields;
|
|
1962
1994
|
}, option?: RequestOption): Promise<AddTransactionResponse | null>;
|
|
@@ -2454,4 +2486,4 @@ declare const createSubscriptionTrialService: (client: GraphQLClient) => {
|
|
|
2454
2486
|
};
|
|
2455
2487
|
type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
|
|
2456
2488
|
|
|
2457
|
-
export { APPLICATION_FEATURES, 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 AddProductsRequest, type AddProductsResponse, type AddProductsResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, 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 Customer, type CustomerService, type CustomerStoreBalance, type CustomersProductCount, type DateFilter, type Distributor, type Expense, type ExpenseCRUD, type ExpenseCategory, type ExpenseCategoryCRUD, type ExpenseCategoryFields, type ExpenseCategoryService, type ExpenseDispenseService, type ExpenseFields, type ExpenseService, 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 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 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 SubscriptionPlanCRUD, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureDefinition, type SubscriptionPlanFeatureDefinitionCRUD, type SubscriptionPlanFeatureDefinitionService, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type SubscriptionService, type SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransactionType, 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 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, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
|
2489
|
+
export { APPLICATION_FEATURES, 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 AddProductsRequest, type AddProductsResponse, type AddProductsResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, 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 Customer, type CustomerService, type CustomerStoreBalance, type CustomersProductCount, type DateFilter, type Distributor, type Expense, type ExpenseCRUD, type ExpenseCategory, type ExpenseCategoryCRUD, type ExpenseCategoryFields, type ExpenseCategoryService, type ExpenseDispenseService, type ExpenseFields, type ExpenseService, type FeatureUserWhitelist, type FeatureUserWhitelistService, 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 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 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 SubscriptionPlanCRUD, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureDefinition, type SubscriptionPlanFeatureDefinitionCRUD, type SubscriptionPlanFeatureDefinitionService, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type SubscriptionService, type SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransactionType, 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 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, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createFeatureUserWhitelistService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,12 @@ interface UserProductCounts {
|
|
|
140
140
|
totalProductToday: number;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
interface FeatureUserWhitelist {
|
|
144
|
+
id: string;
|
|
145
|
+
userId: string;
|
|
146
|
+
appFeatures: string[];
|
|
147
|
+
createdAt: string;
|
|
148
|
+
}
|
|
143
149
|
interface Customer {
|
|
144
150
|
id: string;
|
|
145
151
|
name: string;
|
|
@@ -658,6 +664,7 @@ type UserAccountFields = (keyof UserAccount)[];
|
|
|
658
664
|
type PrivilegeFields = (keyof Privilege)[];
|
|
659
665
|
type CustomerFields = (keyof Customer)[];
|
|
660
666
|
type CustomerStoreBalanceFields = (keyof CustomerStoreBalance)[];
|
|
667
|
+
type FeatureUserWhitelistFields = (keyof FeatureUserWhitelist)[];
|
|
661
668
|
|
|
662
669
|
type CustomersProductCountFields = (keyof CustomersProductCount)[];
|
|
663
670
|
type StoreCategoryProductFields = (keyof StoreCategoryProduct)[];
|
|
@@ -749,6 +756,7 @@ interface MeResponse {
|
|
|
749
756
|
userSetting?: UserSetting;
|
|
750
757
|
userAccounts?: UserAccount[];
|
|
751
758
|
subscription?: Subscription;
|
|
759
|
+
newFeaturesAllowed?: string[];
|
|
752
760
|
}
|
|
753
761
|
interface MeResponseNestedFields extends GetUserResponseNestedFields {
|
|
754
762
|
user: UserFields;
|
|
@@ -1133,6 +1141,30 @@ declare const createCustomerService: (client: GraphQLClient) => {
|
|
|
1133
1141
|
};
|
|
1134
1142
|
type CustomerService = ReturnType<typeof createCustomerService>;
|
|
1135
1143
|
|
|
1144
|
+
declare const createFeatureUserWhitelistService: (client: GraphQLClient) => {
|
|
1145
|
+
createFeatureUserWhitelist: (input: CreateEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1146
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1147
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1148
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1149
|
+
updateFeatureUserWhitelist: (input: UpdateEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1150
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1151
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1152
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1153
|
+
getFeatureUserWhitelist: (input: GetEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1154
|
+
root?: "featureUserWhitelist"[] | undefined;
|
|
1155
|
+
nestedFields?: Record<"featureUserWhitelist", FeatureUserWhitelistFields> | undefined;
|
|
1156
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1157
|
+
deleteFeatureUserWhitelist: (input: DeleteEntityRequest<"featureUserWhitelist">, fetchFields?: {
|
|
1158
|
+
root?: "featureUserWhitelistId"[] | undefined;
|
|
1159
|
+
nestedFields?: {} | undefined;
|
|
1160
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"featureUserWhitelist"> | undefined>;
|
|
1161
|
+
listFeatureUserWhitelists: (input: ListEntityRequest<FeatureUserWhitelist, "featureUserWhitelist">, fetchFields?: {
|
|
1162
|
+
root?: ("total" | "featureUserWhitelists")[] | undefined;
|
|
1163
|
+
nestedFields?: Record<"featureUserWhitelists", FeatureUserWhitelistFields> | undefined;
|
|
1164
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<FeatureUserWhitelist, "featureUserWhitelist"> | undefined>;
|
|
1165
|
+
};
|
|
1166
|
+
type FeatureUserWhitelistService = ReturnType<typeof createFeatureUserWhitelistService>;
|
|
1167
|
+
|
|
1136
1168
|
interface GetCustomerProductCountsByIdsRequest {
|
|
1137
1169
|
userIds: string[];
|
|
1138
1170
|
}
|
|
@@ -1956,7 +1988,7 @@ declare const createTransactionService: (client: GraphQLClient) => {
|
|
|
1956
1988
|
root?: (keyof AddTransactionResponse)[];
|
|
1957
1989
|
nestedFields?: AddTransactionResponseNestedFields;
|
|
1958
1990
|
}, option?: RequestOption): Promise<AddTransactionResponse | null>;
|
|
1959
|
-
addCustomerDeposit(input: Pick<Transaction, "customerId" | "amountPaid">, fetchFields?: {
|
|
1991
|
+
addCustomerDeposit(input: Pick<Transaction, "customerId" | "amountPaid" | "createdById">, fetchFields?: {
|
|
1960
1992
|
root?: (keyof AddTransactionResponse)[];
|
|
1961
1993
|
nestedFields?: AddTransactionResponseNestedFields;
|
|
1962
1994
|
}, option?: RequestOption): Promise<AddTransactionResponse | null>;
|
|
@@ -2454,4 +2486,4 @@ declare const createSubscriptionTrialService: (client: GraphQLClient) => {
|
|
|
2454
2486
|
};
|
|
2455
2487
|
type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
|
|
2456
2488
|
|
|
2457
|
-
export { APPLICATION_FEATURES, 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 AddProductsRequest, type AddProductsResponse, type AddProductsResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, 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 Customer, type CustomerService, type CustomerStoreBalance, type CustomersProductCount, type DateFilter, type Distributor, type Expense, type ExpenseCRUD, type ExpenseCategory, type ExpenseCategoryCRUD, type ExpenseCategoryFields, type ExpenseCategoryService, type ExpenseDispenseService, type ExpenseFields, type ExpenseService, 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 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 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 SubscriptionPlanCRUD, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureDefinition, type SubscriptionPlanFeatureDefinitionCRUD, type SubscriptionPlanFeatureDefinitionService, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type SubscriptionService, type SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransactionType, 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 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, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
|
2489
|
+
export { APPLICATION_FEATURES, 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 AddProductsRequest, type AddProductsResponse, type AddProductsResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, 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 Customer, type CustomerService, type CustomerStoreBalance, type CustomersProductCount, type DateFilter, type Distributor, type Expense, type ExpenseCRUD, type ExpenseCategory, type ExpenseCategoryCRUD, type ExpenseCategoryFields, type ExpenseCategoryService, type ExpenseDispenseService, type ExpenseFields, type ExpenseService, type FeatureUserWhitelist, type FeatureUserWhitelistService, 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 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 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 SubscriptionPlanCRUD, type SubscriptionPlanFeature, type SubscriptionPlanFeatureAccess, type SubscriptionPlanFeatureAccessValue, type SubscriptionPlanFeatureBehaviour, type SubscriptionPlanFeatureBehaviourCRUD, type SubscriptionPlanFeatureBehaviourService, type SubscriptionPlanFeatureBehaviourValue, type SubscriptionPlanFeatureDefinition, type SubscriptionPlanFeatureDefinitionCRUD, type SubscriptionPlanFeatureDefinitionService, type SubscriptionPlanFeatureKey, SubscriptionPlanFeatureKeyLabels, type SubscriptionPlanFeatureLimitValue, type SubscriptionPlanFeatureStatus, type SubscriptionPlanService, type SubscriptionService, type SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransactionType, 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 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, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createFeatureUserWhitelistService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
package/dist/index.esm.js
CHANGED
|
@@ -276,6 +276,12 @@ var userSchema = {
|
|
|
276
276
|
var user_schema_default = userSchema;
|
|
277
277
|
|
|
278
278
|
// src/services/user/user.entity.ts
|
|
279
|
+
var featureUserWhitelistQuery = [
|
|
280
|
+
"appFeatures",
|
|
281
|
+
"createdAt",
|
|
282
|
+
"id",
|
|
283
|
+
"userId"
|
|
284
|
+
];
|
|
279
285
|
var customerQuery = [
|
|
280
286
|
"createdAt",
|
|
281
287
|
"email",
|
|
@@ -1338,7 +1344,8 @@ var meResponse = [
|
|
|
1338
1344
|
"stores",
|
|
1339
1345
|
"userSetting",
|
|
1340
1346
|
"userAccounts",
|
|
1341
|
-
"subscription"
|
|
1347
|
+
"subscription",
|
|
1348
|
+
"newFeaturesAllowed"
|
|
1342
1349
|
];
|
|
1343
1350
|
var meResponseNestedFields = {
|
|
1344
1351
|
stores: storeQuery,
|
|
@@ -2014,6 +2021,101 @@ var createCustomerService = (client) => ({
|
|
|
2014
2021
|
)
|
|
2015
2022
|
});
|
|
2016
2023
|
|
|
2024
|
+
// src/services/user/schemas/feature-user-whitelist.schema.ts
|
|
2025
|
+
var featureUserWhitelistSchema = {
|
|
2026
|
+
get: {
|
|
2027
|
+
operation: "query",
|
|
2028
|
+
name: "getFeatureUserWhitelist",
|
|
2029
|
+
variables: "($featureUserWhitelist: FeatureUserWhitelistInput!)",
|
|
2030
|
+
field: "(featureUserWhitelist: $featureUserWhitelist)"
|
|
2031
|
+
},
|
|
2032
|
+
list: {
|
|
2033
|
+
operation: "query",
|
|
2034
|
+
name: "listFeatureUserWhitelists",
|
|
2035
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $featureUserWhitelist: FeatureUserWhitelistInput, $featureUserWhitelistIds: [String])",
|
|
2036
|
+
field: "(limit: $limit, skip: $skip, search: $search, featureUserWhitelist: $featureUserWhitelist, featureUserWhitelistIds: $featureUserWhitelistIds)"
|
|
2037
|
+
},
|
|
2038
|
+
create: {
|
|
2039
|
+
operation: "mutation",
|
|
2040
|
+
name: "createFeatureUserWhitelist",
|
|
2041
|
+
variables: "($featureUserWhitelist: FeatureUserWhitelistInput!)",
|
|
2042
|
+
field: "(featureUserWhitelist: $featureUserWhitelist)"
|
|
2043
|
+
},
|
|
2044
|
+
update: {
|
|
2045
|
+
operation: "mutation",
|
|
2046
|
+
name: "updateFeatureUserWhitelist",
|
|
2047
|
+
variables: "($featureUserWhitelistId: String!, $featureUserWhitelist: FeatureUserWhitelistInput!)",
|
|
2048
|
+
field: "(featureUserWhitelistId: $featureUserWhitelistId, featureUserWhitelist: $featureUserWhitelist)"
|
|
2049
|
+
},
|
|
2050
|
+
delete: {
|
|
2051
|
+
operation: "mutation",
|
|
2052
|
+
name: "deleteFeatureUserWhitelist",
|
|
2053
|
+
variables: "($featureUserWhitelistId: String!)",
|
|
2054
|
+
field: "(featureUserWhitelistId: $featureUserWhitelistId)"
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
|
|
2058
|
+
// src/services/user/types/feature-user-whitelist.type.ts
|
|
2059
|
+
var ENTITY8 = "featureUserWhitelist";
|
|
2060
|
+
var featureUserWhitelistIntegration = createStandardEntityIntegration({
|
|
2061
|
+
key: ENTITY8,
|
|
2062
|
+
fields: featureUserWhitelistQuery
|
|
2063
|
+
});
|
|
2064
|
+
var featureUserWhitelistListIntegration = createListIntegration({
|
|
2065
|
+
key: ENTITY8,
|
|
2066
|
+
fields: featureUserWhitelistQuery
|
|
2067
|
+
});
|
|
2068
|
+
var featureUserWhitelistDeleteIntegration = createDeleteIntegration(ENTITY8);
|
|
2069
|
+
|
|
2070
|
+
// src/services/user/feature-user-whitelist.service.ts
|
|
2071
|
+
var createFeatureUserWhitelistService = (client) => ({
|
|
2072
|
+
createFeatureUserWhitelist: createOperationExecutor(
|
|
2073
|
+
client,
|
|
2074
|
+
"createFeatureUserWhitelist",
|
|
2075
|
+
{
|
|
2076
|
+
schema: buildSchema(featureUserWhitelistSchema.create),
|
|
2077
|
+
defaultRootFields: [...featureUserWhitelistIntegration.create.responseFields],
|
|
2078
|
+
defaultNestedFields: featureUserWhitelistIntegration.create.nestedFields
|
|
2079
|
+
}
|
|
2080
|
+
),
|
|
2081
|
+
updateFeatureUserWhitelist: createOperationExecutor(
|
|
2082
|
+
client,
|
|
2083
|
+
"updateFeatureUserWhitelist",
|
|
2084
|
+
{
|
|
2085
|
+
schema: buildSchema(featureUserWhitelistSchema.update),
|
|
2086
|
+
defaultRootFields: featureUserWhitelistIntegration.update.responseFields,
|
|
2087
|
+
defaultNestedFields: featureUserWhitelistIntegration.update.nestedFields
|
|
2088
|
+
}
|
|
2089
|
+
),
|
|
2090
|
+
getFeatureUserWhitelist: createOperationExecutor(
|
|
2091
|
+
client,
|
|
2092
|
+
"getFeatureUserWhitelist",
|
|
2093
|
+
{
|
|
2094
|
+
schema: buildSchema(featureUserWhitelistSchema.get),
|
|
2095
|
+
defaultRootFields: featureUserWhitelistIntegration.get.responseFields,
|
|
2096
|
+
defaultNestedFields: featureUserWhitelistIntegration.get.nestedFields
|
|
2097
|
+
}
|
|
2098
|
+
),
|
|
2099
|
+
deleteFeatureUserWhitelist: createOperationExecutor(
|
|
2100
|
+
client,
|
|
2101
|
+
"deleteFeatureUserWhitelist",
|
|
2102
|
+
{
|
|
2103
|
+
schema: buildSchema(featureUserWhitelistSchema.delete),
|
|
2104
|
+
defaultRootFields: featureUserWhitelistDeleteIntegration.responseFields,
|
|
2105
|
+
defaultNestedFields: {}
|
|
2106
|
+
}
|
|
2107
|
+
),
|
|
2108
|
+
listFeatureUserWhitelists: createOperationExecutor(
|
|
2109
|
+
client,
|
|
2110
|
+
"listFeatureUserWhitelists",
|
|
2111
|
+
{
|
|
2112
|
+
schema: buildSchema(featureUserWhitelistSchema.list),
|
|
2113
|
+
defaultRootFields: [...featureUserWhitelistListIntegration.responseFields],
|
|
2114
|
+
defaultNestedFields: featureUserWhitelistListIntegration.nestedFields
|
|
2115
|
+
}
|
|
2116
|
+
)
|
|
2117
|
+
});
|
|
2118
|
+
|
|
2017
2119
|
// src/services/inventory/types/product.type.ts
|
|
2018
2120
|
var getCustomerProductCountsByIdsResponse = [
|
|
2019
2121
|
"customersProductCounts"
|
|
@@ -3569,40 +3671,40 @@ var createTransactionService = (client) => ({
|
|
|
3569
3671
|
});
|
|
3570
3672
|
|
|
3571
3673
|
// src/services/sales/types/expense-category.type.ts
|
|
3572
|
-
var
|
|
3674
|
+
var ENTITY9 = "expenseCategory";
|
|
3573
3675
|
var expenseCategoryIntegration = createStandardEntityIntegration({
|
|
3574
|
-
key:
|
|
3676
|
+
key: ENTITY9,
|
|
3575
3677
|
fields: expenseCategoryQuery,
|
|
3576
3678
|
nested: {
|
|
3577
3679
|
features: expenseCategoryQuery
|
|
3578
3680
|
}
|
|
3579
3681
|
});
|
|
3580
3682
|
var expenseCategoryListIntegration = createListIntegration({
|
|
3581
|
-
key:
|
|
3683
|
+
key: ENTITY9,
|
|
3582
3684
|
fields: expenseCategoryQuery,
|
|
3583
3685
|
nested: {
|
|
3584
3686
|
features: expenseCategoryQuery
|
|
3585
3687
|
}
|
|
3586
3688
|
});
|
|
3587
|
-
var expenseCategoryDeleteIntegration = createDeleteIntegration(
|
|
3689
|
+
var expenseCategoryDeleteIntegration = createDeleteIntegration(ENTITY9);
|
|
3588
3690
|
|
|
3589
3691
|
// src/services/sales/types/expense.type.ts
|
|
3590
|
-
var
|
|
3692
|
+
var ENTITY10 = "expense";
|
|
3591
3693
|
var expenseIntegration = createStandardEntityIntegration({
|
|
3592
|
-
key:
|
|
3694
|
+
key: ENTITY10,
|
|
3593
3695
|
fields: expenseQuery,
|
|
3594
3696
|
nested: {
|
|
3595
3697
|
features: expenseQuery
|
|
3596
3698
|
}
|
|
3597
3699
|
});
|
|
3598
3700
|
var expenseListIntegration = createListIntegration({
|
|
3599
|
-
key:
|
|
3701
|
+
key: ENTITY10,
|
|
3600
3702
|
fields: expenseQuery,
|
|
3601
3703
|
nested: {
|
|
3602
3704
|
features: expenseQuery
|
|
3603
3705
|
}
|
|
3604
3706
|
});
|
|
3605
|
-
var expenseDeleteIntegration = createDeleteIntegration(
|
|
3707
|
+
var expenseDeleteIntegration = createDeleteIntegration(ENTITY10);
|
|
3606
3708
|
|
|
3607
3709
|
// src/services/sales/schemas/expense-category.schema.ts
|
|
3608
3710
|
var expenseCategorySchema = {
|
|
@@ -3899,6 +4001,6 @@ var createExpenseDispenseService = (client) => {
|
|
|
3899
4001
|
};
|
|
3900
4002
|
};
|
|
3901
4003
|
|
|
3902
|
-
export { APPLICATION_FEATURES, AuthenticationError, GraphQLClient, NetworkError, SdkError, SubscriptionPlanFeatureKeyLabels, UpdateSaleResponse, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
|
4004
|
+
export { APPLICATION_FEATURES, AuthenticationError, GraphQLClient, NetworkError, SdkError, SubscriptionPlanFeatureKeyLabels, UpdateSaleResponse, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addProductsResponseFields, addProductsResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createAuthService, createCustomerService, createExpenseCategoryService, createExpenseDispenseService, createExpenseService, createFeatureUserWhitelistService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createSubscriptionTrialService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, expenseCategoryDeleteIntegration, expenseCategoryIntegration, expenseCategoryListIntegration, expenseCategoryQuery, expenseDeleteIntegration, expenseIntegration, expenseListIntegration, expenseQuery, 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, getSubscriptionResponse, getSubscriptionResponseNestedFields, getSubscriptionsResponse, getSubscriptionsResponseNestedFields, getTransactionResponse, getTransactionResponseNestedFields, getTransactionsResponse, getTransactionsResponseNestedFields, orderQuery, paystackInitializePaymentResponse, paystackInitializeSubscriptionResponse, removePackageResponseFields, removePriceResponseFields, removeProductResponseFields, removeStockResponse, removeStoreCategoryProductResponseFields, removeStoreCategoryResponseFields, removeStoreResponse, removeSubscriptionResponse, saleQuery, searchCategoriesAndTemplateResponse, searchCategoriesAndTemplateResponseNestedFields, searchProductNamesResponse, searchProductNamesResponseNestedFields, subscriptionPlanDeleteIntegration, subscriptionPlanFeatureBehaviourDeleteIntegration, subscriptionPlanFeatureBehaviourIntegration, subscriptionPlanFeatureBehaviourListIntegration, subscriptionPlanFeatureDefinitionDeleteIntegration, subscriptionPlanFeatureDefinitionIntegration, subscriptionPlanFeatureDefinitionListIntegration, subscriptionPlanIntegration, subscriptionPlanListIntegration, subscriptionTrialDeleteIntegration, subscriptionTrialIntegration, subscriptionTrialListIntegration, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields, userRoleExample };
|
|
3903
4005
|
//# sourceMappingURL=index.esm.js.map
|
|
3904
4006
|
//# sourceMappingURL=index.esm.js.map
|