@connect-plus-online/ogabai-integrations 0.0.70 → 0.0.72
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 +116 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +66 -7
- package/dist/index.d.ts +66 -7
- package/dist/index.esm.js +113 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -466,6 +466,14 @@ type SubscriptionPlanFeature = {
|
|
|
466
466
|
accessValue: SubscriptionPlanFeatureAccess;
|
|
467
467
|
behaviourIds: string[];
|
|
468
468
|
};
|
|
469
|
+
interface SubscriptionTrial {
|
|
470
|
+
id: string;
|
|
471
|
+
userId: string;
|
|
472
|
+
planId: string;
|
|
473
|
+
storeId: string;
|
|
474
|
+
createdAt: string;
|
|
475
|
+
endedAt: string;
|
|
476
|
+
}
|
|
469
477
|
interface SubscriptionPlan {
|
|
470
478
|
id: string;
|
|
471
479
|
code: string;
|
|
@@ -513,6 +521,8 @@ interface Subscription {
|
|
|
513
521
|
subscriptionTiers: SubscriptionPlanFeatureBehaviourValue[];
|
|
514
522
|
subscriptionLimits: SubscriptionPlanFeatureLimitValue[];
|
|
515
523
|
subscriptionAccesses: SubscriptionPlanFeatureAccessValue[];
|
|
524
|
+
paymentReference: string;
|
|
525
|
+
paymentDataJson: string;
|
|
516
526
|
}
|
|
517
527
|
|
|
518
528
|
type AuthTokenProvider = () => Promise<string | null> | string | null;
|
|
@@ -1865,9 +1875,10 @@ type SubscriptionPlanFields = (keyof SubscriptionPlan)[];
|
|
|
1865
1875
|
type SubscriptionFields = (keyof Subscription)[];
|
|
1866
1876
|
type SubscriptionPlanFeatureBehaviourFields = (keyof SubscriptionPlanFeatureBehaviour)[];
|
|
1867
1877
|
type SubscriptionPlanFeatureDefinitionFields = (keyof SubscriptionPlanFeatureDefinition)[];
|
|
1878
|
+
type SubscriptionTrialFields = (keyof SubscriptionTrial)[];
|
|
1868
1879
|
|
|
1869
|
-
declare const ENTITY$
|
|
1870
|
-
type SubscriptionPlanFeatureDefinitionCRUD = EntityCRUD<SubscriptionPlanFeatureDefinition, typeof ENTITY$
|
|
1880
|
+
declare const ENTITY$3: "subscriptionPlanFeatureDefinition";
|
|
1881
|
+
type SubscriptionPlanFeatureDefinitionCRUD = EntityCRUD<SubscriptionPlanFeatureDefinition, typeof ENTITY$3>;
|
|
1871
1882
|
declare const subscriptionPlanFeatureDefinitionIntegration: {
|
|
1872
1883
|
get: {
|
|
1873
1884
|
responseFields: ["subscriptionPlanFeatureDefinition"];
|
|
@@ -1890,8 +1901,8 @@ declare const subscriptionPlanFeatureDefinitionDeleteIntegration: {
|
|
|
1890
1901
|
responseFields: ["subscriptionPlanFeatureDefinitionId"];
|
|
1891
1902
|
};
|
|
1892
1903
|
|
|
1893
|
-
declare const ENTITY$
|
|
1894
|
-
type SubscriptionPlanCRUD = EntityCRUD<SubscriptionPlan, typeof ENTITY$
|
|
1904
|
+
declare const ENTITY$2: "subscriptionPlan";
|
|
1905
|
+
type SubscriptionPlanCRUD = EntityCRUD<SubscriptionPlan, typeof ENTITY$2>;
|
|
1895
1906
|
declare const subscriptionPlanIntegration: {
|
|
1896
1907
|
get: {
|
|
1897
1908
|
responseFields: ["subscriptionPlan"];
|
|
@@ -1975,8 +1986,8 @@ interface RemoveSubscriptionResponse {
|
|
|
1975
1986
|
}
|
|
1976
1987
|
declare const removeSubscriptionResponse: (keyof RemoveSubscriptionResponse)[];
|
|
1977
1988
|
|
|
1978
|
-
declare const ENTITY: "subscriptionPlanFeatureBehaviour";
|
|
1979
|
-
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY>;
|
|
1989
|
+
declare const ENTITY$1: "subscriptionPlanFeatureBehaviour";
|
|
1990
|
+
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY$1>;
|
|
1980
1991
|
declare const subscriptionPlanFeatureBehaviourIntegration: {
|
|
1981
1992
|
get: {
|
|
1982
1993
|
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
@@ -1999,6 +2010,30 @@ declare const subscriptionPlanFeatureBehaviourDeleteIntegration: {
|
|
|
1999
2010
|
responseFields: ["subscriptionPlanFeatureBehaviourId"];
|
|
2000
2011
|
};
|
|
2001
2012
|
|
|
2013
|
+
declare const ENTITY: "subscriptionTrial";
|
|
2014
|
+
type SubscriptionTrialCRUD = EntityCRUD<SubscriptionTrial, typeof ENTITY>;
|
|
2015
|
+
declare const subscriptionTrialIntegration: {
|
|
2016
|
+
get: {
|
|
2017
|
+
responseFields: ["subscriptionTrial"];
|
|
2018
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2019
|
+
};
|
|
2020
|
+
create: {
|
|
2021
|
+
responseFields: ["subscriptionTrial"];
|
|
2022
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2023
|
+
};
|
|
2024
|
+
update: {
|
|
2025
|
+
responseFields: ["subscriptionTrial"];
|
|
2026
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
declare const subscriptionTrialListIntegration: {
|
|
2030
|
+
responseFields: readonly ["subscriptionTrials", "total"];
|
|
2031
|
+
nestedFields: Record<"subscriptionTrials", SubscriptionTrialFields>;
|
|
2032
|
+
};
|
|
2033
|
+
declare const subscriptionTrialDeleteIntegration: {
|
|
2034
|
+
responseFields: ["subscriptionTrialId"];
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2002
2037
|
declare const createPaystackService: (client: GraphQLClient) => {
|
|
2003
2038
|
paystackInitializeSubscription(input: PaystackInitializeSubscriptionRequest, fetchFields?: {
|
|
2004
2039
|
root?: (keyof PaystackInitializeSubscriptionResponse)[];
|
|
@@ -2111,4 +2146,28 @@ declare const createSubscriptionPlanFeatureBehaviourService: (client: GraphQLCli
|
|
|
2111
2146
|
};
|
|
2112
2147
|
type SubscriptionPlanFeatureBehaviourService = ReturnType<typeof createSubscriptionPlanFeatureBehaviourService>;
|
|
2113
2148
|
|
|
2114
|
-
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type 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 Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type 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, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, 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, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
2149
|
+
declare const createSubscriptionTrialService: (client: GraphQLClient) => {
|
|
2150
|
+
createSubscriptionTrial: (input: CreateEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2151
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2152
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2153
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2154
|
+
updateSubscriptionTrial: (input: UpdateEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2155
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2156
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2157
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2158
|
+
getSubscriptionTrial: (input: GetEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2159
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2160
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2161
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2162
|
+
removeSubscriptionTrial: (input: DeleteEntityRequest<"subscriptionTrial">, fetchFields?: {
|
|
2163
|
+
root?: "subscriptionTrialId"[] | undefined;
|
|
2164
|
+
nestedFields?: {} | undefined;
|
|
2165
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"subscriptionTrial"> | undefined>;
|
|
2166
|
+
getSubscriptionTrials: (input: ListEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2167
|
+
root?: ("total" | "subscriptionTrials")[] | undefined;
|
|
2168
|
+
nestedFields?: Record<"subscriptionTrials", SubscriptionTrialFields> | undefined;
|
|
2169
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2170
|
+
};
|
|
2171
|
+
type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
|
|
2172
|
+
|
|
2173
|
+
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type 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 SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type 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, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -466,6 +466,14 @@ type SubscriptionPlanFeature = {
|
|
|
466
466
|
accessValue: SubscriptionPlanFeatureAccess;
|
|
467
467
|
behaviourIds: string[];
|
|
468
468
|
};
|
|
469
|
+
interface SubscriptionTrial {
|
|
470
|
+
id: string;
|
|
471
|
+
userId: string;
|
|
472
|
+
planId: string;
|
|
473
|
+
storeId: string;
|
|
474
|
+
createdAt: string;
|
|
475
|
+
endedAt: string;
|
|
476
|
+
}
|
|
469
477
|
interface SubscriptionPlan {
|
|
470
478
|
id: string;
|
|
471
479
|
code: string;
|
|
@@ -513,6 +521,8 @@ interface Subscription {
|
|
|
513
521
|
subscriptionTiers: SubscriptionPlanFeatureBehaviourValue[];
|
|
514
522
|
subscriptionLimits: SubscriptionPlanFeatureLimitValue[];
|
|
515
523
|
subscriptionAccesses: SubscriptionPlanFeatureAccessValue[];
|
|
524
|
+
paymentReference: string;
|
|
525
|
+
paymentDataJson: string;
|
|
516
526
|
}
|
|
517
527
|
|
|
518
528
|
type AuthTokenProvider = () => Promise<string | null> | string | null;
|
|
@@ -1865,9 +1875,10 @@ type SubscriptionPlanFields = (keyof SubscriptionPlan)[];
|
|
|
1865
1875
|
type SubscriptionFields = (keyof Subscription)[];
|
|
1866
1876
|
type SubscriptionPlanFeatureBehaviourFields = (keyof SubscriptionPlanFeatureBehaviour)[];
|
|
1867
1877
|
type SubscriptionPlanFeatureDefinitionFields = (keyof SubscriptionPlanFeatureDefinition)[];
|
|
1878
|
+
type SubscriptionTrialFields = (keyof SubscriptionTrial)[];
|
|
1868
1879
|
|
|
1869
|
-
declare const ENTITY$
|
|
1870
|
-
type SubscriptionPlanFeatureDefinitionCRUD = EntityCRUD<SubscriptionPlanFeatureDefinition, typeof ENTITY$
|
|
1880
|
+
declare const ENTITY$3: "subscriptionPlanFeatureDefinition";
|
|
1881
|
+
type SubscriptionPlanFeatureDefinitionCRUD = EntityCRUD<SubscriptionPlanFeatureDefinition, typeof ENTITY$3>;
|
|
1871
1882
|
declare const subscriptionPlanFeatureDefinitionIntegration: {
|
|
1872
1883
|
get: {
|
|
1873
1884
|
responseFields: ["subscriptionPlanFeatureDefinition"];
|
|
@@ -1890,8 +1901,8 @@ declare const subscriptionPlanFeatureDefinitionDeleteIntegration: {
|
|
|
1890
1901
|
responseFields: ["subscriptionPlanFeatureDefinitionId"];
|
|
1891
1902
|
};
|
|
1892
1903
|
|
|
1893
|
-
declare const ENTITY$
|
|
1894
|
-
type SubscriptionPlanCRUD = EntityCRUD<SubscriptionPlan, typeof ENTITY$
|
|
1904
|
+
declare const ENTITY$2: "subscriptionPlan";
|
|
1905
|
+
type SubscriptionPlanCRUD = EntityCRUD<SubscriptionPlan, typeof ENTITY$2>;
|
|
1895
1906
|
declare const subscriptionPlanIntegration: {
|
|
1896
1907
|
get: {
|
|
1897
1908
|
responseFields: ["subscriptionPlan"];
|
|
@@ -1975,8 +1986,8 @@ interface RemoveSubscriptionResponse {
|
|
|
1975
1986
|
}
|
|
1976
1987
|
declare const removeSubscriptionResponse: (keyof RemoveSubscriptionResponse)[];
|
|
1977
1988
|
|
|
1978
|
-
declare const ENTITY: "subscriptionPlanFeatureBehaviour";
|
|
1979
|
-
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY>;
|
|
1989
|
+
declare const ENTITY$1: "subscriptionPlanFeatureBehaviour";
|
|
1990
|
+
type SubscriptionPlanFeatureBehaviourCRUD = EntityCRUD<SubscriptionPlanFeatureBehaviour, typeof ENTITY$1>;
|
|
1980
1991
|
declare const subscriptionPlanFeatureBehaviourIntegration: {
|
|
1981
1992
|
get: {
|
|
1982
1993
|
responseFields: ["subscriptionPlanFeatureBehaviour"];
|
|
@@ -1999,6 +2010,30 @@ declare const subscriptionPlanFeatureBehaviourDeleteIntegration: {
|
|
|
1999
2010
|
responseFields: ["subscriptionPlanFeatureBehaviourId"];
|
|
2000
2011
|
};
|
|
2001
2012
|
|
|
2013
|
+
declare const ENTITY: "subscriptionTrial";
|
|
2014
|
+
type SubscriptionTrialCRUD = EntityCRUD<SubscriptionTrial, typeof ENTITY>;
|
|
2015
|
+
declare const subscriptionTrialIntegration: {
|
|
2016
|
+
get: {
|
|
2017
|
+
responseFields: ["subscriptionTrial"];
|
|
2018
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2019
|
+
};
|
|
2020
|
+
create: {
|
|
2021
|
+
responseFields: ["subscriptionTrial"];
|
|
2022
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2023
|
+
};
|
|
2024
|
+
update: {
|
|
2025
|
+
responseFields: ["subscriptionTrial"];
|
|
2026
|
+
nestedFields: Record<"subscriptionTrial", SubscriptionTrialFields>;
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
declare const subscriptionTrialListIntegration: {
|
|
2030
|
+
responseFields: readonly ["subscriptionTrials", "total"];
|
|
2031
|
+
nestedFields: Record<"subscriptionTrials", SubscriptionTrialFields>;
|
|
2032
|
+
};
|
|
2033
|
+
declare const subscriptionTrialDeleteIntegration: {
|
|
2034
|
+
responseFields: ["subscriptionTrialId"];
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2002
2037
|
declare const createPaystackService: (client: GraphQLClient) => {
|
|
2003
2038
|
paystackInitializeSubscription(input: PaystackInitializeSubscriptionRequest, fetchFields?: {
|
|
2004
2039
|
root?: (keyof PaystackInitializeSubscriptionResponse)[];
|
|
@@ -2111,4 +2146,28 @@ declare const createSubscriptionPlanFeatureBehaviourService: (client: GraphQLCli
|
|
|
2111
2146
|
};
|
|
2112
2147
|
type SubscriptionPlanFeatureBehaviourService = ReturnType<typeof createSubscriptionPlanFeatureBehaviourService>;
|
|
2113
2148
|
|
|
2114
|
-
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type 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 Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type 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, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, 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, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
2149
|
+
declare const createSubscriptionTrialService: (client: GraphQLClient) => {
|
|
2150
|
+
createSubscriptionTrial: (input: CreateEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2151
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2152
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2153
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2154
|
+
updateSubscriptionTrial: (input: UpdateEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2155
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2156
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2157
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2158
|
+
getSubscriptionTrial: (input: GetEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2159
|
+
root?: "subscriptionTrial"[] | undefined;
|
|
2160
|
+
nestedFields?: Record<"subscriptionTrial", SubscriptionTrialFields> | undefined;
|
|
2161
|
+
} | undefined, option?: RequestOption) => Promise<EntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2162
|
+
removeSubscriptionTrial: (input: DeleteEntityRequest<"subscriptionTrial">, fetchFields?: {
|
|
2163
|
+
root?: "subscriptionTrialId"[] | undefined;
|
|
2164
|
+
nestedFields?: {} | undefined;
|
|
2165
|
+
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"subscriptionTrial"> | undefined>;
|
|
2166
|
+
getSubscriptionTrials: (input: ListEntityRequest<SubscriptionTrial, "subscriptionTrial">, fetchFields?: {
|
|
2167
|
+
root?: ("total" | "subscriptionTrials")[] | undefined;
|
|
2168
|
+
nestedFields?: Record<"subscriptionTrials", SubscriptionTrialFields> | undefined;
|
|
2169
|
+
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<SubscriptionTrial, "subscriptionTrial"> | undefined>;
|
|
2170
|
+
};
|
|
2171
|
+
type SubscriptionTrialService = ReturnType<typeof createSubscriptionTrialService>;
|
|
2172
|
+
|
|
2173
|
+
export { type Account, type AccountStatus, type AddPackageRequest, type AddPackageResponse, type AddPackageResponseFields, type AddPackagesRequest, type AddPackagesResponse, type AddPackagesResponseFields, type AddPriceRequest, type AddPriceResponse, type AddPriceResponseFields, type AddProductRequest, type AddProductResponse, type AddProductResponseNestedFields, type AddStockRequest, type AddStockResponse, type AddStockResponseNestedFields, type AddStoreRequest, type AddStoreResponse, type AddStoreResponseNestedFields, type AddSubscriptionRequest, type AddSubscriptionResponse, type AddSubscriptionResponseNestedFields, type AddTransactionRequest, type AddTransactionResponse, type AddTransactionResponseNestedFields, type Address, type Admin, type ApplicationFeature, type ApplicationFeatureService, type Auth, type AuthService, type AuthTokenProvider, AuthenticationError, type Bank, type CategoryStatus, type ClientOptions, type CreateStockService, type CreateStoreCategoryProductRequest, type CreateStoreCategoryProductResponse, type CreateStoreCategoryProductResponseNestedFields, type CreateStoreCategoryRequest, type CreateStoreCategoryResponse, type CreateStoreCategoryResponseNestedFields, type CustomersProductCount, type DateFilter, type Distributor, type GetCustomerProductCountsByIdsRequest, type GetCustomerProductCountsByIdsResponse, type GetCustomerProductCountsByIdsResponseNestedFields, type GetOrderRequest, type GetOrderResponse, type GetOrderResponseNestedFields, type GetOrdersRequest, type GetOrdersResponse, type GetOrdersResponseNestedFields, type GetPackageRequest, type GetPackageResponse, type GetPackageResponseFields, type GetPackagesRequest, type GetPackagesResponse, type GetPackagesResponseFields, type GetPriceRequest, type GetPriceResponse, type GetPriceResponseFields, type GetPricesRequest, type GetPricesResponse, type GetPricesResponseFields, type GetProductByBarcodeRequest, type GetProductByBarcodeResponse, type GetProductByBarcodeResponseNestedFields, type GetProductRequest, type GetProductResponse, type GetProductResponseNestedFields, type GetProductsRequest, type GetProductsResponse, type GetProductsResponseNestedFields, type GetSaleResponseNestedFields, type GetSalesRequest, type GetSalesResponse, type GetSalesResponseNestedFields, type GetStockRequest, type GetStockResponse, type GetStockResponseNestedFields, type GetStocksRequest, type GetStocksResponse, type GetStocksResponseNestedFields, type GetStoreCategoriesRequest, type GetStoreCategoriesResponse, type GetStoreCategoriesResponseNestedFields, type GetStoreCategoryProductRequest, type GetStoreCategoryProductResponse, type GetStoreCategoryProductResponseNestedFields, type GetStoreCategoryProductsRequest, type GetStoreCategoryProductsResponse, type GetStoreCategoryProductsResponseNestedFields, type GetStoreCategoryRequest, type GetStoreCategoryResponse, type GetStoreCategoryResponseNestedFields, type GetStoreCountRequest, type GetStoreCountResponse, type GetStoreRequest, type GetStoreResponse, type GetStoreResponseNestedFields, type GetStoresRequest, type GetStoresResponse, type GetStoresResponseNestedFields, type 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 SubscriptionTrial, type SubscriptionTrialCRUD, type SubscriptionTrialService, type Transaction, type TransactionCounts, type TransactionFields, type TransactionPin, type TransactionService, type TransportOptions, type TxStatus, type UpdatePackageRequest, type UpdatePackageResponse, type UpdatePackageResponseFields, type UpdatePackagesRequest, type UpdatePackagesResponse, type UpdatePriceRequest, type UpdatePriceResponse, type UpdatePriceResponseFields, type UpdateProductRequest, type UpdateProductResponse, type UpdateProductResponseNestedFields, type UpdateSaleRequest, UpdateSaleResponse, type UpdateSaleResponseNestedFields, type UpdateStockRequest, type UpdateStockResponse, type UpdateStockResponseNestedFields, type UpdateStoreCategoryProductRequest, type UpdateStoreCategoryProductResponse, type UpdateStoreCategoryProductResponseNestedFields, type UpdateStoreCategoryRequest, type UpdateStoreCategoryResponse, type UpdateStoreCategoryResponseNestedFields, type UpdateStoreRequest, type UpdateStoreResponse, type UpdateStoreResponseNestedFields, type 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, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, 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, 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 };
|
package/dist/index.esm.js
CHANGED
|
@@ -612,6 +612,14 @@ var createPaystackService = (client) => ({
|
|
|
612
612
|
});
|
|
613
613
|
|
|
614
614
|
// src/services/subscription/subscription.entity.ts
|
|
615
|
+
var subscriptionTrialQuery = [
|
|
616
|
+
"createdAt",
|
|
617
|
+
"endedAt",
|
|
618
|
+
"id",
|
|
619
|
+
"planId",
|
|
620
|
+
"storeId",
|
|
621
|
+
"userId"
|
|
622
|
+
];
|
|
615
623
|
var subscriptionPlanFeatureDefinitionQuery = [
|
|
616
624
|
"id",
|
|
617
625
|
"title",
|
|
@@ -646,7 +654,9 @@ var subscriptionQuery = [
|
|
|
646
654
|
"trialEnd",
|
|
647
655
|
"updatedAt",
|
|
648
656
|
"userId",
|
|
649
|
-
"version"
|
|
657
|
+
"version",
|
|
658
|
+
"paymentDataJson",
|
|
659
|
+
"paymentReference"
|
|
650
660
|
];
|
|
651
661
|
var subscriptionPlanFeatureQuery = [
|
|
652
662
|
"limitValue",
|
|
@@ -737,6 +747,18 @@ var subscriptionPlanFeatureBehaviourListIntegration = createListIntegration({
|
|
|
737
747
|
});
|
|
738
748
|
var subscriptionPlanFeatureBehaviourDeleteIntegration = createDeleteIntegration(ENTITY4);
|
|
739
749
|
|
|
750
|
+
// src/services/subscription/types/subscription-trial.type.ts
|
|
751
|
+
var ENTITY5 = "subscriptionTrial";
|
|
752
|
+
var subscriptionTrialIntegration = createStandardEntityIntegration({
|
|
753
|
+
key: ENTITY5,
|
|
754
|
+
fields: subscriptionTrialQuery
|
|
755
|
+
});
|
|
756
|
+
var subscriptionTrialListIntegration = createListIntegration({
|
|
757
|
+
key: "subscriptionTrials",
|
|
758
|
+
fields: subscriptionTrialQuery
|
|
759
|
+
});
|
|
760
|
+
var subscriptionTrialDeleteIntegration = createDeleteIntegration(ENTITY5);
|
|
761
|
+
|
|
740
762
|
// src/helpers/service.factory.ts
|
|
741
763
|
function createOperationExecutor(client, key, config) {
|
|
742
764
|
return async (input, fetchFields, option) => {
|
|
@@ -1133,6 +1155,89 @@ var createSubscriptionPlanFeatureBehaviourService = (client) => ({
|
|
|
1133
1155
|
)
|
|
1134
1156
|
});
|
|
1135
1157
|
|
|
1158
|
+
// src/services/subscription/schemas/subscription-trial.schema.ts
|
|
1159
|
+
var subscriptionTrialSchema = {
|
|
1160
|
+
get: {
|
|
1161
|
+
operation: "query",
|
|
1162
|
+
name: "getSubscriptionTrial",
|
|
1163
|
+
variables: "($subscriptionTrial: SubscriptionTrialInput!)",
|
|
1164
|
+
field: "(subscriptionTrial: $subscriptionTrial)"
|
|
1165
|
+
},
|
|
1166
|
+
list: {
|
|
1167
|
+
operation: "query",
|
|
1168
|
+
name: "getSubscriptionTrials",
|
|
1169
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $subscriptionTrial: SubscriptionTrialInput, $subscriptionTrialIds: [String])",
|
|
1170
|
+
field: "(limit: $limit, skip: $skip, search: $search, subscriptionTrial: $subscriptionTrial, subscriptionTrialIds: $subscriptionTrialIds)"
|
|
1171
|
+
},
|
|
1172
|
+
create: {
|
|
1173
|
+
operation: "mutation",
|
|
1174
|
+
name: "createSubscriptionTrial",
|
|
1175
|
+
variables: "($subscriptionTrial: SubscriptionTrialInput!)",
|
|
1176
|
+
field: "(subscriptionTrial: $subscriptionTrial)"
|
|
1177
|
+
},
|
|
1178
|
+
update: {
|
|
1179
|
+
operation: "mutation",
|
|
1180
|
+
name: "updateSubscriptionTrial",
|
|
1181
|
+
variables: "($subscriptionTrialId: String!, $subscriptionTrial: SubscriptionTrialInput!)",
|
|
1182
|
+
field: "(subscriptionTrialId: $subscriptionTrialId, subscriptionTrial: $subscriptionTrial)"
|
|
1183
|
+
},
|
|
1184
|
+
delete: {
|
|
1185
|
+
operation: "mutation",
|
|
1186
|
+
name: "removeSubscriptionTrial",
|
|
1187
|
+
variables: "($subscriptionTrialId: String!)",
|
|
1188
|
+
field: "(subscriptionTrialId: $subscriptionTrialId)"
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
// src/services/subscription/subscription-trial.service.ts
|
|
1193
|
+
var createSubscriptionTrialService = (client) => ({
|
|
1194
|
+
createSubscriptionTrial: createOperationExecutor(
|
|
1195
|
+
client,
|
|
1196
|
+
"createSubscriptionTrial",
|
|
1197
|
+
{
|
|
1198
|
+
schema: buildSchema(subscriptionTrialSchema.create),
|
|
1199
|
+
defaultRootFields: subscriptionTrialIntegration.create.responseFields,
|
|
1200
|
+
defaultNestedFields: subscriptionTrialIntegration.create.nestedFields
|
|
1201
|
+
}
|
|
1202
|
+
),
|
|
1203
|
+
updateSubscriptionTrial: createOperationExecutor(
|
|
1204
|
+
client,
|
|
1205
|
+
"updateSubscriptionTrial",
|
|
1206
|
+
{
|
|
1207
|
+
schema: buildSchema(subscriptionTrialSchema.update),
|
|
1208
|
+
defaultRootFields: subscriptionTrialIntegration.update.responseFields,
|
|
1209
|
+
defaultNestedFields: subscriptionTrialIntegration.update.nestedFields
|
|
1210
|
+
}
|
|
1211
|
+
),
|
|
1212
|
+
getSubscriptionTrial: createOperationExecutor(
|
|
1213
|
+
client,
|
|
1214
|
+
"getSubscriptionTrial",
|
|
1215
|
+
{
|
|
1216
|
+
schema: buildSchema(subscriptionTrialSchema.get),
|
|
1217
|
+
defaultRootFields: subscriptionTrialIntegration.get.responseFields,
|
|
1218
|
+
defaultNestedFields: subscriptionTrialIntegration.get.nestedFields
|
|
1219
|
+
}
|
|
1220
|
+
),
|
|
1221
|
+
removeSubscriptionTrial: createOperationExecutor(
|
|
1222
|
+
client,
|
|
1223
|
+
"removeSubscriptionTrial",
|
|
1224
|
+
{
|
|
1225
|
+
schema: buildSchema(subscriptionTrialSchema.delete),
|
|
1226
|
+
defaultRootFields: subscriptionTrialDeleteIntegration.responseFields,
|
|
1227
|
+
defaultNestedFields: {}
|
|
1228
|
+
}
|
|
1229
|
+
),
|
|
1230
|
+
getSubscriptionTrials: createOperationExecutor(
|
|
1231
|
+
client,
|
|
1232
|
+
"getSubscriptionTrials",
|
|
1233
|
+
{
|
|
1234
|
+
schema: buildSchema(subscriptionTrialSchema.list),
|
|
1235
|
+
defaultRootFields: [...subscriptionTrialListIntegration.responseFields],
|
|
1236
|
+
defaultNestedFields: subscriptionTrialListIntegration.nestedFields
|
|
1237
|
+
}
|
|
1238
|
+
)
|
|
1239
|
+
});
|
|
1240
|
+
|
|
1136
1241
|
// src/services/user/types/user.type.ts
|
|
1137
1242
|
var getUserTypeCountsResponse = [
|
|
1138
1243
|
"userTypeCounts"
|
|
@@ -1634,9 +1739,9 @@ var createUserAccountService = (client) => ({
|
|
|
1634
1739
|
});
|
|
1635
1740
|
|
|
1636
1741
|
// src/services/user/types/user-role.type.ts
|
|
1637
|
-
var
|
|
1742
|
+
var ENTITY6 = "userRole";
|
|
1638
1743
|
var userRoleIntegration = createStandardEntityIntegration({
|
|
1639
|
-
key:
|
|
1744
|
+
key: ENTITY6,
|
|
1640
1745
|
fields: userRoleQuery,
|
|
1641
1746
|
nested: {
|
|
1642
1747
|
privileges: privilegeQuery
|
|
@@ -1649,7 +1754,7 @@ var userRoleListIntegration = createListIntegration({
|
|
|
1649
1754
|
privileges: privilegeQuery
|
|
1650
1755
|
}
|
|
1651
1756
|
});
|
|
1652
|
-
var userRoleDeleteIntegration = createDeleteIntegration(
|
|
1757
|
+
var userRoleDeleteIntegration = createDeleteIntegration(ENTITY6);
|
|
1653
1758
|
|
|
1654
1759
|
// src/services/user/schemas/user-role.schema.ts
|
|
1655
1760
|
var userRoleSchema = {
|
|
@@ -1735,16 +1840,16 @@ var createUserRoleService = (client) => ({
|
|
|
1735
1840
|
});
|
|
1736
1841
|
|
|
1737
1842
|
// src/services/user/types/application-feature.type.ts
|
|
1738
|
-
var
|
|
1843
|
+
var ENTITY7 = "applicationFeature";
|
|
1739
1844
|
var applicationFeatureIntegration = createStandardEntityIntegration({
|
|
1740
|
-
key:
|
|
1845
|
+
key: ENTITY7,
|
|
1741
1846
|
fields: applicationFeatureQuery
|
|
1742
1847
|
});
|
|
1743
1848
|
var applicationFeatureListIntegration = createListIntegration({
|
|
1744
1849
|
key: "applicationFeatures",
|
|
1745
1850
|
fields: applicationFeatureQuery
|
|
1746
1851
|
});
|
|
1747
|
-
var applicationFeatureDeleteIntegration = createDeleteIntegration(
|
|
1852
|
+
var applicationFeatureDeleteIntegration = createDeleteIntegration(ENTITY7);
|
|
1748
1853
|
|
|
1749
1854
|
// src/services/user/schemas/application-feature.schema.ts
|
|
1750
1855
|
var applicationFeatureSchema = {
|
|
@@ -3261,6 +3366,6 @@ var createTransactionService = (client) => ({
|
|
|
3261
3366
|
}
|
|
3262
3367
|
});
|
|
3263
3368
|
|
|
3264
|
-
export { AuthenticationError, GraphQLClient, NetworkError, SdkError, SubscriptionPlanFeatureKeyLabels, UpdateSaleResponse, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, createOrderService, createPackageService, createPaystackService, createPriceService, createProductService, createSaleService, createStockService, createStoreCategoryProductResponseFields, createStoreCategoryProductResponseNestedFields, createStoreCategoryProductService, createStoreCategoryResponseFields, createStoreCategoryResponseNestedFields, createStoreCategoryService, createStoreService, createSubscriptionPlanFeatureBehaviourService, createSubscriptionPlanFeatureDefinitionService, createSubscriptionPlanService, createSubscriptionService, createTransactionService, createTransport, createUserAccountService, createUserNotificationService, createUserRoleService, createUserService, getCustomerProductCountsByIdsResponse, getCustomerProductCountsByIdsResponseNestedFields, getOrderResponse, getOrderResponseNestedFields, getOrdersResponse, getOrdersResponseNestedFields, getPackageResponseFields, getPackageResponseNestedFields, getPackagesResponseFields, getPackagesResponseNestedFields, getPriceResponseFields, getPriceResponseNestedFields, getPricesResponseFields, getPricesResponseNestedFields, getProductByBarcodeResponse, getProductByBarcodeResponseNestedFields, getProductResponseFields, getProductResponseNestedFields, getProductsResponseFields, getProductsResponseNestedFields, getSaleResponse, getSaleResponseNestedFields, getSalesResponse, getSalesResponseNestedFields, getStockResponse, getStockResponseNestedFields, getStocksResponse, getStocksResponseNestedFields, getStoreCategoriesResponseFields, getStoreCategoriesResponseNestedFields, getStoreCategoryProductResponseFields, getStoreCategoryProductResponseNestedFields, getStoreCategoryProductsResponseFields, getStoreCategoryProductsResponseNestedFields, getStoreCategoryResponseFields, getStoreCategoryResponseNestedFields, getStoreCountResponse, getStoreResponse, getStoreResponseNestedFields, getStoresResponse, getStoresResponseNestedFields, 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, toAsyncHeadersFactory, toAsyncTokenProvider, transactionQuery, updatePackageResponseFields, updatePackageResponseNestedFields, updatePriceResponseFields, updatePriceResponseNestedFields, updateProductResponseFields, updateProductResponseNestedFields, updateSaleResponseNestedFields, updateStockResponse, updateStockResponseNestedFields, updateStoreCategoryProductResponseFields, updateStoreCategoryProductResponseNestedFields, updateStoreCategoryResponseFields, updateStoreCategoryResponseNestedFields, updateStoreResponse, updateStoreResponseNestedFields, updateSubscriptionResponse, updateSubscriptionResponseNestedFields, updateTransactionResponse, updateTransactionResponseNestedFields };
|
|
3369
|
+
export { AuthenticationError, GraphQLClient, NetworkError, SdkError, SubscriptionPlanFeatureKeyLabels, UpdateSaleResponse, _getPackageResponseNestedFields, _getProductResponseNestedFields, _getSaleResponseNestedFields, _getStoreResponseNestedFields, _getSubscriptionResponseNestedFields, _getTransactionResponseNestedFields, _getTransactionsResponseNestedFields, addPackageResponseFields, addPackageResponseNestedFields, addPackagesResponseFields, addPackagesResponseNestedFields, addPriceResponseFields, addPriceResponseNestedFields, addProductResponseFields, addProductResponseNestedFields, addStockResponse, addStockResponseNestedFields, addStoreResponse, addStoreResponseNestedFields, addSubscriptionResponse, addSubscriptionResponseNestedFields, addTransactionResponse, addTransactionResponseNestedFields, compose, createApplicationFeatureService, createAuthService, 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, 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 };
|
|
3265
3370
|
//# sourceMappingURL=index.esm.js.map
|
|
3266
3371
|
//# sourceMappingURL=index.esm.js.map
|