@connect-plus-online/ogabai-integrations 0.0.109 → 0.0.110

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.d.mts CHANGED
@@ -368,7 +368,7 @@ type DateFilter = {
368
368
  startDate: string;
369
369
  endDate: string;
370
370
  };
371
- type Sale = {
371
+ interface Sale {
372
372
  _id: string;
373
373
  productId: string;
374
374
  packageId: string;
@@ -377,12 +377,12 @@ type Sale = {
377
377
  createdAt: string;
378
378
  storeId: string;
379
379
  transactionId?: string;
380
- };
380
+ }
381
381
  type SaleStatus = "paid" | "credit";
382
382
  type PaymentType = "cash" | "card" | "transfer" | "wallet";
383
383
  type Platform = "pos" | "commerce" | "wallet";
384
384
  type TxStatus = "pending" | "processing" | "completed" | "failed";
385
- type TransactionType = "sale" | "saleReturn" | "deposit" | "withdrawal" | "customerRefund" | "customerDeposit" | "expense";
385
+ type TransactionType = "sale" | "saleReturn" | "order" | "withdrawal" | "customerRefund" | "customerDeposit" | "expense";
386
386
  type Transaction = {
387
387
  _id: string;
388
388
  from: string;
@@ -412,12 +412,13 @@ type Transaction = {
412
412
  };
413
413
  type OrderStatus = "pending" | "processing" | "routing" | "delivered";
414
414
  type Order = {
415
- _id: string;
415
+ id: string;
416
416
  userId: string;
417
417
  orderStatus: OrderStatus;
418
418
  transactionId: string;
419
419
  storeId: string;
420
420
  createdAt: string;
421
+ saleHolders?: Sale[];
421
422
  };
422
423
  type UserSaleCounts = {
423
424
  totalSales: bigint;
@@ -1826,42 +1827,42 @@ declare const orderQuery: OrderFields;
1826
1827
  type SaleFields = (keyof Sale)[];
1827
1828
  declare const saleQuery: SaleFields;
1828
1829
 
1829
- interface GetOrderRequest {
1830
- order: Promise<Order>;
1831
- }
1832
- interface GetOrderResponse {
1833
- order: Order;
1834
- }
1835
- declare const getOrderResponse: (keyof GetOrderResponse)[];
1836
- interface GetOrderResponseNestedFields {
1837
- order: OrderFields;
1838
- }
1839
- declare const getOrderResponseNestedFields: GetOrderResponseNestedFields;
1840
- interface GetOrdersRequest {
1841
- order?: Promise<Order>;
1842
- orderIds?: string[];
1843
- limit: number;
1844
- skip: number;
1845
- }
1846
- interface GetOrdersResponse {
1847
- orders: Order[];
1848
- }
1849
- declare const getOrdersResponse: (keyof GetOrdersResponse)[];
1850
- interface GetOrdersResponseNestedFields extends Omit<GetOrderResponseNestedFields, "order"> {
1851
- orders: OrderFields;
1852
- }
1853
- declare const getOrdersResponseNestedFields: GetOrdersResponseNestedFields;
1854
-
1855
1830
  declare const createOrderService: (client: GraphQLClient) => {
1856
- getOrder(input: GetOrderRequest, fetchFields?: {
1857
- root?: (keyof GetOrderResponse)[];
1858
- nestedFields?: GetOrderResponseNestedFields;
1859
- }, option?: RequestOption): Promise<GetOrderResponse | null>;
1860
- getOrders(input: GetOrdersRequest, fetchFields?: {
1861
- root?: (keyof GetOrdersResponse)[];
1862
- nestedFields?: GetOrdersResponseNestedFields;
1863
- }, option?: RequestOption): Promise<GetOrdersResponse | null>;
1831
+ createOrder(input: {
1832
+ transaction: Pick<Transaction, "from" | "amountPaid" | "amountTotal" | "storeId" | "createdById">;
1833
+ sales: Sale[];
1834
+ }, fetchFields?: {
1835
+ root?: (keyof AddTransactionResponse)[];
1836
+ nestedFields?: AddTransactionResponseNestedFields;
1837
+ }, option?: RequestOption): Promise<AddTransactionResponse | null>;
1838
+ _createOrder: (input: CreateEntityRequest<Order, "order">, fetchFields?: {
1839
+ root?: "order"[] | undefined;
1840
+ nestedFields?: (Record<"order", OrderFields> & {
1841
+ saleHolders: SaleFields;
1842
+ }) | undefined;
1843
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1844
+ updateOrder: (input: UpdateEntityRequest<Order, "order">, fetchFields?: {
1845
+ root?: "order"[] | undefined;
1846
+ nestedFields?: (Record<"order", OrderFields> & {
1847
+ saleHolders: SaleFields;
1848
+ }) | undefined;
1849
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1850
+ getOrder: (input: GetEntityRequest<Order, "order">, fetchFields?: {
1851
+ root?: "order"[] | undefined;
1852
+ nestedFields?: (Record<"order", OrderFields> & {
1853
+ saleHolders: SaleFields;
1854
+ }) | undefined;
1855
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1856
+ deleteOrder: (input: DeleteEntityRequest<"order">, fetchFields?: {
1857
+ root?: "orderId"[] | undefined;
1858
+ nestedFields?: {} | undefined;
1859
+ } | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"order"> | undefined>;
1860
+ getOrders: (input: ListEntityRequest<Order, "order">, fetchFields?: {
1861
+ root?: ("total" | "orders")[] | undefined;
1862
+ nestedFields?: Record<"orders", OrderFields> | undefined;
1863
+ } | undefined, option?: RequestOption) => Promise<ListEntityResponse<Order, "order"> | undefined>;
1864
1864
  };
1865
+ type OrderService = ReturnType<typeof createOrderService>;
1865
1866
 
1866
1867
  declare const getSaleResponse: (keyof GetSalesResponse)[];
1867
1868
  interface GetSaleResponseNestedFields extends Omit<GetProductResponseNestedFields, "product"> {
@@ -2017,6 +2018,36 @@ declare const createTransactionService: (client: GraphQLClient) => {
2017
2018
  };
2018
2019
  type TransactionService = ReturnType<typeof createTransactionService>;
2019
2020
 
2021
+ declare const ENTITY$6: "order";
2022
+ type OrderCRUD = EntityCRUD<Order, typeof ENTITY$6>;
2023
+ declare const orderIntegration: {
2024
+ get: {
2025
+ responseFields: ["order"];
2026
+ nestedFields: Record<"order", OrderFields> & {
2027
+ saleHolders: SaleFields;
2028
+ };
2029
+ };
2030
+ create: {
2031
+ responseFields: ["order"];
2032
+ nestedFields: Record<"order", OrderFields> & {
2033
+ saleHolders: SaleFields;
2034
+ };
2035
+ };
2036
+ update: {
2037
+ responseFields: ["order"];
2038
+ nestedFields: Record<"order", OrderFields> & {
2039
+ saleHolders: SaleFields;
2040
+ };
2041
+ };
2042
+ };
2043
+ declare const orderListIntegration: {
2044
+ responseFields: readonly ["orders", "total"];
2045
+ nestedFields: Record<"orders", OrderFields>;
2046
+ };
2047
+ declare const orderDeleteIntegration: {
2048
+ responseFields: ["orderId"];
2049
+ };
2050
+
2020
2051
  declare const ENTITY$5: "expenseCategory";
2021
2052
  type ExpenseCategoryCRUD = EntityCRUD$1<ExpenseCategory, typeof ENTITY$5>;
2022
2053
  declare const expenseCategoryIntegration: {
@@ -2496,4 +2527,4 @@ declare const createSubscriptionTrialService: (client: GraphQLClient) => {
2496
2527
  };
2497
2528
  type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
2498
2529
 
2499
- 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, AppNewFeatures, 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 };
2530
+ 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, AppNewFeatures, 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 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 OrderCRUD, type OrderFields, type OrderService, 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, 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, orderDeleteIntegration, orderIntegration, orderListIntegration, 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
@@ -368,7 +368,7 @@ type DateFilter = {
368
368
  startDate: string;
369
369
  endDate: string;
370
370
  };
371
- type Sale = {
371
+ interface Sale {
372
372
  _id: string;
373
373
  productId: string;
374
374
  packageId: string;
@@ -377,12 +377,12 @@ type Sale = {
377
377
  createdAt: string;
378
378
  storeId: string;
379
379
  transactionId?: string;
380
- };
380
+ }
381
381
  type SaleStatus = "paid" | "credit";
382
382
  type PaymentType = "cash" | "card" | "transfer" | "wallet";
383
383
  type Platform = "pos" | "commerce" | "wallet";
384
384
  type TxStatus = "pending" | "processing" | "completed" | "failed";
385
- type TransactionType = "sale" | "saleReturn" | "deposit" | "withdrawal" | "customerRefund" | "customerDeposit" | "expense";
385
+ type TransactionType = "sale" | "saleReturn" | "order" | "withdrawal" | "customerRefund" | "customerDeposit" | "expense";
386
386
  type Transaction = {
387
387
  _id: string;
388
388
  from: string;
@@ -412,12 +412,13 @@ type Transaction = {
412
412
  };
413
413
  type OrderStatus = "pending" | "processing" | "routing" | "delivered";
414
414
  type Order = {
415
- _id: string;
415
+ id: string;
416
416
  userId: string;
417
417
  orderStatus: OrderStatus;
418
418
  transactionId: string;
419
419
  storeId: string;
420
420
  createdAt: string;
421
+ saleHolders?: Sale[];
421
422
  };
422
423
  type UserSaleCounts = {
423
424
  totalSales: bigint;
@@ -1826,42 +1827,42 @@ declare const orderQuery: OrderFields;
1826
1827
  type SaleFields = (keyof Sale)[];
1827
1828
  declare const saleQuery: SaleFields;
1828
1829
 
1829
- interface GetOrderRequest {
1830
- order: Promise<Order>;
1831
- }
1832
- interface GetOrderResponse {
1833
- order: Order;
1834
- }
1835
- declare const getOrderResponse: (keyof GetOrderResponse)[];
1836
- interface GetOrderResponseNestedFields {
1837
- order: OrderFields;
1838
- }
1839
- declare const getOrderResponseNestedFields: GetOrderResponseNestedFields;
1840
- interface GetOrdersRequest {
1841
- order?: Promise<Order>;
1842
- orderIds?: string[];
1843
- limit: number;
1844
- skip: number;
1845
- }
1846
- interface GetOrdersResponse {
1847
- orders: Order[];
1848
- }
1849
- declare const getOrdersResponse: (keyof GetOrdersResponse)[];
1850
- interface GetOrdersResponseNestedFields extends Omit<GetOrderResponseNestedFields, "order"> {
1851
- orders: OrderFields;
1852
- }
1853
- declare const getOrdersResponseNestedFields: GetOrdersResponseNestedFields;
1854
-
1855
1830
  declare const createOrderService: (client: GraphQLClient) => {
1856
- getOrder(input: GetOrderRequest, fetchFields?: {
1857
- root?: (keyof GetOrderResponse)[];
1858
- nestedFields?: GetOrderResponseNestedFields;
1859
- }, option?: RequestOption): Promise<GetOrderResponse | null>;
1860
- getOrders(input: GetOrdersRequest, fetchFields?: {
1861
- root?: (keyof GetOrdersResponse)[];
1862
- nestedFields?: GetOrdersResponseNestedFields;
1863
- }, option?: RequestOption): Promise<GetOrdersResponse | null>;
1831
+ createOrder(input: {
1832
+ transaction: Pick<Transaction, "from" | "amountPaid" | "amountTotal" | "storeId" | "createdById">;
1833
+ sales: Sale[];
1834
+ }, fetchFields?: {
1835
+ root?: (keyof AddTransactionResponse)[];
1836
+ nestedFields?: AddTransactionResponseNestedFields;
1837
+ }, option?: RequestOption): Promise<AddTransactionResponse | null>;
1838
+ _createOrder: (input: CreateEntityRequest<Order, "order">, fetchFields?: {
1839
+ root?: "order"[] | undefined;
1840
+ nestedFields?: (Record<"order", OrderFields> & {
1841
+ saleHolders: SaleFields;
1842
+ }) | undefined;
1843
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1844
+ updateOrder: (input: UpdateEntityRequest<Order, "order">, fetchFields?: {
1845
+ root?: "order"[] | undefined;
1846
+ nestedFields?: (Record<"order", OrderFields> & {
1847
+ saleHolders: SaleFields;
1848
+ }) | undefined;
1849
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1850
+ getOrder: (input: GetEntityRequest<Order, "order">, fetchFields?: {
1851
+ root?: "order"[] | undefined;
1852
+ nestedFields?: (Record<"order", OrderFields> & {
1853
+ saleHolders: SaleFields;
1854
+ }) | undefined;
1855
+ } | undefined, option?: RequestOption) => Promise<EntityResponse<Order, "order"> | undefined>;
1856
+ deleteOrder: (input: DeleteEntityRequest<"order">, fetchFields?: {
1857
+ root?: "orderId"[] | undefined;
1858
+ nestedFields?: {} | undefined;
1859
+ } | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"order"> | undefined>;
1860
+ getOrders: (input: ListEntityRequest<Order, "order">, fetchFields?: {
1861
+ root?: ("total" | "orders")[] | undefined;
1862
+ nestedFields?: Record<"orders", OrderFields> | undefined;
1863
+ } | undefined, option?: RequestOption) => Promise<ListEntityResponse<Order, "order"> | undefined>;
1864
1864
  };
1865
+ type OrderService = ReturnType<typeof createOrderService>;
1865
1866
 
1866
1867
  declare const getSaleResponse: (keyof GetSalesResponse)[];
1867
1868
  interface GetSaleResponseNestedFields extends Omit<GetProductResponseNestedFields, "product"> {
@@ -2017,6 +2018,36 @@ declare const createTransactionService: (client: GraphQLClient) => {
2017
2018
  };
2018
2019
  type TransactionService = ReturnType<typeof createTransactionService>;
2019
2020
 
2021
+ declare const ENTITY$6: "order";
2022
+ type OrderCRUD = EntityCRUD<Order, typeof ENTITY$6>;
2023
+ declare const orderIntegration: {
2024
+ get: {
2025
+ responseFields: ["order"];
2026
+ nestedFields: Record<"order", OrderFields> & {
2027
+ saleHolders: SaleFields;
2028
+ };
2029
+ };
2030
+ create: {
2031
+ responseFields: ["order"];
2032
+ nestedFields: Record<"order", OrderFields> & {
2033
+ saleHolders: SaleFields;
2034
+ };
2035
+ };
2036
+ update: {
2037
+ responseFields: ["order"];
2038
+ nestedFields: Record<"order", OrderFields> & {
2039
+ saleHolders: SaleFields;
2040
+ };
2041
+ };
2042
+ };
2043
+ declare const orderListIntegration: {
2044
+ responseFields: readonly ["orders", "total"];
2045
+ nestedFields: Record<"orders", OrderFields>;
2046
+ };
2047
+ declare const orderDeleteIntegration: {
2048
+ responseFields: ["orderId"];
2049
+ };
2050
+
2020
2051
  declare const ENTITY$5: "expenseCategory";
2021
2052
  type ExpenseCategoryCRUD = EntityCRUD$1<ExpenseCategory, typeof ENTITY$5>;
2022
2053
  declare const expenseCategoryIntegration: {
@@ -2496,4 +2527,4 @@ declare const createSubscriptionTrialService: (client: GraphQLClient) => {
2496
2527
  };
2497
2528
  type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
2498
2529
 
2499
- 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, AppNewFeatures, 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 };
2530
+ 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, AppNewFeatures, 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 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 OrderCRUD, type OrderFields, type OrderService, 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, 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, orderDeleteIntegration, orderIntegration, orderListIntegration, 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 };